[Android] Force Uri decoding on playback time

Geoffrey Métais git at videolan.org
Fri Aug 3 14:04:19 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Aug  3 14:03:53 2018 +0200| [8ad8eeb2ef9d50be9a17654e44f9f3190517f89d] | committer: Geoffrey Métais

Force Uri decoding on playback time

> https://code.videolan.org/videolan/vlc-android/commit/8ad8eeb2ef9d50be9a17654e44f9f3190517f89d
---

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

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 3230b0413..1a10fb41d 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -270,7 +270,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
             skipMedia()
         } else if (mw.type != MediaWrapper.TYPE_VIDEO || isVideoPlaying || player.hasRenderer
                 || mw.hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO)) {
-            val uri = FileUtils.getUri(mw.uri)
+            val uri = Uri.parse(Uri.decode(FileUtils.getUri(mw.uri).toString()))
             if (uri == null) {
                 skipMedia()
                 return



More information about the Android mailing list