[Android] Fix an Uri resolving regression
Nicolas Pomepuy
git at videolan.org
Tue May 25 12:09:27 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue May 25 11:15:33 2021 +0200| [e61280bb48e27a977afffe4c782364778c95a8f2] | committer: Nicolas Pomepuy
Fix an Uri resolving regression
Fixes #1817
> https://code.videolan.org/videolan/vlc-android/commit/e61280bb48e27a977afffe4c782364778c95a8f2
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
1 file changed, 1 insertion(+), 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 4965db239..86aa4b60e 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -341,7 +341,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
if (mw.type != MediaWrapper.TYPE_VIDEO || isVideoPlaying || player.hasRenderer
|| mw.hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO)) {
- var uri = mw.uri
+ var uri = withContext(Dispatchers.IO) { FileUtils.getUri(mw.uri) }
if (uri == null) {
skipMedia()
return
More information about the Android
mailing list