[Android] Fix metadata not parsed when hot swapping current playqueue media with the ML
Nicolas Pomepuy
git at videolan.org
Tue Jun 21 13:23:52 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 21 12:19:13 2022 +0200| [efcd48394805032995f8e5b08f475ce5353ce4fa] | committer: Nicolas Pomepuy
Fix metadata not parsed when hot swapping current playqueue media with the ML
Fixes #1195
> https://code.videolan.org/videolan/vlc-android/commit/efcd48394805032995f8e5b08f475ce5353ce4fa
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 5bc0f9799..c2c476bdf 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -182,6 +182,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
if (mlUpdate) {
service.awaitMedialibraryStarted()
mediaList.replaceWith(withContext(Dispatchers.IO) { mediaList.copy.updateWithMLMeta() })
+ getCurrentMedia()?.let { refreshTrackMeta(it) }
if (BuildConfig.BETA) {
Log.d(TAG, "load after ml update with values: ")
mediaList.copy.forEach { Log.d(TAG, "Media location: ${it.uri}") }
More information about the Android
mailing list