[Android] Save media meta before it's unloaded

Geoffrey Métais git at videolan.org
Wed Aug 30 13:50:53 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Aug 30 10:20:15 2017 +0200| [3d085603987da9b31e686068862534929856503c] | committer: Geoffrey Métais

Save media meta before it's unloaded

> https://code.videolan.org/videolan/vlc-android/commit/3d085603987da9b31e686068862534929856503c
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index a747c4fdb..19d287da1 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -677,7 +677,6 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
         mStopped = true;
         mCurrentIndex = -1;
         hideNotification();
-        saveMediaMeta();
         executeUpdate();
         publishState();
         executeUpdateProgress();
@@ -986,6 +985,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
         savePosition();
         final Media media = mMediaPlayer.getMedia();
         if (media != null) {
+            saveMediaMeta();
             media.setEventListener(null);
             mMediaPlayer.setEventListener(null);
             final MediaPlayer mp = mMediaPlayer;



More information about the Android mailing list