Jelajahi Sumber

VLCPlaybackController: fix openURL crash

openURL with options and completion is iOS 10+ hence we're going back to the old call
Carola Nitz 7 tahun lalu
induk
melakukan
5acd85b8a9
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      Sources/VLCPlaybackController.m

+ 2 - 2
Sources/VLCPlaybackController.m

@@ -295,9 +295,9 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
     [_shuffleStack removeAllObjects];
 
     if (_errorCallback && _mediaPlayer.state == VLCMediaPlayerStateError &&  !_sessionWillRestart)
-        [[UIApplication sharedApplication] openURL:_errorCallback options:@{} completionHandler:nil];
+        [[UIApplication sharedApplication] openURL:_errorCallback];
     else if (_successCallback && !_sessionWillRestart)
-        [[UIApplication sharedApplication] openURL:_successCallback options:@{} completionHandler:nil];
+        [[UIApplication sharedApplication] openURL:_successCallback];
 
     [[self remoteControlService] unsubscribeFromRemoteCommands];