Commit fd58b416 authored by Carola Nitz's avatar Carola Nitz

VLCPlaybackController: videooutput shouldn't be set to nil when the app is...

VLCPlaybackController: videooutput shouldn't be set to nil when the app is send to the background to avoid crash (Closes #60)
parent 3874a8a5
......@@ -1328,7 +1328,6 @@ static inline NSArray * RemoteCommandCenterCommandsToHandle(MPRemoteCommandCente
- (void)applicationDidEnterBackground:(NSNotification *)notification
{
_preBackgroundWrapperView = _videoOutputViewWrapper;
[self setVideoOutputView:nil];
if (_mediaPlayer.audioTrackIndexes.count > 0)
_mediaPlayer.currentVideoTrackIndex = -1;
......
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