Commit aae07a12 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

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