Commit 5acd85b8 authored by Carola Nitz's avatar Carola Nitz

VLCPlaybackController: fix openURL crash

openURL with options and completion is iOS 10+ hence we're going back to the old call
parent 6448d66b
......@@ -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];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment