[Android] Use decoded mrl to fetch media from medialibrary

Geoffrey Métais git at videolan.org
Fri Dec 22 10:42:42 CET 2017


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

Use decoded mrl to fetch media from medialibrary

(cherry picked from commit c55182852014a198dcfa8f46cc7851282c02ef6c)

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

 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 9c8e1e244..9a3b6ebde 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -277,7 +277,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