[Android] Fix Uri encoding in getMedia()
Geoffrey Métais
git at videolan.org
Tue Jan 16 17:45:32 CET 2018
vlc-android | branch: chromecast | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 5 16:44:44 2018 +0100| [45a77503f42ec9753270fb3afb08175a3091d4a6] | committer: Geoffrey Métais
Fix Uri encoding in getMedia()
> https://code.videolan.org/videolan/vlc-android/commit/45a77503f42ec9753270fb3afb08175a3091d4a6
---
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 02d5639bd..3ec20e529 100644
--- a/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
+++ b/medialibrary/src/org/videolan/medialibrary/Medialibrary.java
@@ -269,7 +269,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