Explorar o código

VLCPlaybackController: fix openURL crash

openURL with options and completion is iOS 10+ hence we're going back to the old call
Carola Nitz %!s(int64=7) %!d(string=hai) anos
pai
achega
5acd85b8a9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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];