Browse Source

VLCPlaybackController: fix openURL crash

openURL with options and completion is iOS 10+ hence we're going back to the old call
Carola Nitz 7 years ago
parent
commit
5acd85b8a9
1 changed files with 2 additions and 2 deletions
  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];