Commit 6bff4834 authored by Felix Paul Kühne's avatar Felix Paul Kühne

vpc: make sure to always save playback data on stop (refs #15437)

parent 8f15c9a0
...@@ -282,6 +282,12 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl ...@@ -282,6 +282,12 @@ NSString *const VLCPlaybackControllerPlaybackDidFail = @"VLCPlaybackControllerPl
if (_mediaPlayer.media) { if (_mediaPlayer.media) {
[_mediaPlayer pause]; [_mediaPlayer pause];
[self _savePlaybackState]; [self _savePlaybackState];
@try {
[[MLMediaLibrary sharedMediaLibrary] save];
}
@catch (NSException *exception) {
APLog(@"saving playback state failed");
}
[_mediaPlayer stop]; [_mediaPlayer stop];
} }
if (_mediaPlayer) if (_mediaPlayer)
......
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