[Android] Fix Uri encoding in Medialibrary.getMedia()
Geoffrey Métais
git at videolan.org
Fri Jan 26 15:16:38 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jan 22 16:28:34 2018 +0100| [28b8b847f703bd12e776299449e8f06873134f31] | committer: Geoffrey Métais
Fix Uri encoding in Medialibrary.getMedia()
> https://code.videolan.org/videolan/vlc-android/commit/28b8b847f703bd12e776299449e8f06873134f31
---
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 5d278ab55..182a22b0b 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 = Tools.encodeVLCMrl(uri.toString());
+ final String vlcMrl = Tools.encodeVLCMrl(Uri.decode(uri.toString()));
return mIsInitiated && !TextUtils.isEmpty(vlcMrl) ? nativeGetMediaFromMrl(vlcMrl) : null;
}
More information about the Android
mailing list