[Android] Fix Uri encoding in getMedia()

Geoffrey Métais git at videolan.org
Fri Jan 5 16:59:26 CET 2018


vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan  5 16:44:44 2018 +0100| [114ad322df5c959aa8ed83d701994d74940493c6] | committer: Geoffrey Métais

Fix Uri encoding in getMedia()

(cherry picked from commit 45a77503f42ec9753270fb3afb08175a3091d4a6)

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

 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 70941027d..0291a4f5d 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -271,7 +271,7 @@ public class Medialibrary {
 
     @Nullable
     public MediaWrapper getMedia(Uri uri) {
-        final String vlcMrl = VLCUtil.encodeVLCUri(uri);
+        final String vlcMrl = Tools.encodeVLCMrl(uri.toString());
         return mIsInitiated && !TextUtils.isEmpty(vlcMrl) ? nativeGetMediaFromMrl(vlcMrl) : null;
     }
 



More information about the Android mailing list