[Android] Use decoded mrl to fetch media from medialibrary

Geoffrey Métais git at videolan.org
Tue Jan 16 17:45:06 CET 2018


vlc-android | branch: chromecast | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 22 10:30:07 2017 +0100| [c55182852014a198dcfa8f46cc7851282c02ef6c] | committer: Geoffrey Métais

Use decoded mrl to fetch media from medialibrary

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

 medialibrary/src/org/videolan/medialibrary/Medialibrary.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
index 1cb65ac5c..a4e9ca234 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -275,7 +275,7 @@ public class Medialibrary {
 
     @Nullable
     public MediaWrapper getMedia(String mrl) {
-        final String vlcMrl = Tools.encodeVLCMrl(mrl);
+        final String vlcMrl = Tools.encodeVLCMrl(Uri.decode(mrl));
         return mIsInitiated && !TextUtils.isEmpty(vlcMrl) ? nativeGetMediaFromMrl(vlcMrl) : null;
     }
 



More information about the Android mailing list