Commit f666a8c9 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

(cherry picked from commit 5acd85b8)
parent 75d04fd2
......@@ -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