[Android] Fix global audio delay not working for non indexed media

Nicolas Pomepuy git at videolan.org
Mon Sep 5 10:51:19 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Sep  1 11:23:26 2022 +0200| [2330d29431e963d44c1fe05390c1fc83ee5bc71d] | committer: Nicolas Pomepuy

Fix global audio delay not working for non indexed media

Fixes #2669

> https://code.videolan.org/videolan/vlc-android/commit/2330d29431e963d44c1fe05390c1fc83ee5bc71d
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 1 -
 1 file changed, 1 deletion(-)

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 586912fab..34bc12e16 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -585,7 +585,6 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
     }
 
     private fun loadMediaMeta(media: MediaWrapper) {
-        if (media.id == 0L) return
         if (player.canSwitchToVideo()) {
             val savedDelay = media.getMetaLong(MediaWrapper.META_AUDIODELAY)
             val globalDelay = Settings.getInstance(AppContextProvider.appContext).getLong(AUDIO_DELAY_GLOBAL, 0L)



More information about the Android mailing list