Commit 6c243fa4 authored by Gleb Pinigin's avatar Gleb Pinigin

media player: resume playing if playback was active; prevent from playback...

media player: resume playing if playback was active; prevent from playback resume in background even if corresponding option is disabled in settings (should fix #9225)

VLC::pause works as toggle play/pause. If playback is paused already sequential Pause will lead to Play action
parent 1238e141
......@@ -977,8 +977,10 @@
_mediaPlayer.currentVideoTrackIndex = 0;
if (![[[NSUserDefaults standardUserDefaults] objectForKey:kVLCSettingContinueAudioInBackgroundKey] boolValue]) {
[_mediaPlayer pause];
_shouldResumePlaying = YES;
if ([_mediaPlayer isPlaying]) {
[_mediaPlayer pause];
_shouldResumePlaying = YES;
}
}
glFinish();
......
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