[Android] Allow '@' in VLC mrl

Geoffrey Métais git at videolan.org
Wed Mar 7 15:22:41 CET 2018


vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar  2 16:26:15 2018 +0100| [5e4bd5b878bd1964915d848c44b9e045d64f381f] | committer: Geoffrey Métais

Allow '@' in VLC mrl

Close #486

(cherry picked from commit 2f830a099d5735d7cf945f6c2bb09d0d08553420)

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

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

diff --git a/medialibrary/src/org/videolan/medialibrary/Tools.java b/medialibrary/src/org/videolan/medialibrary/Tools.java
index a59031e4a..b166a4de2 100644
--- a/medialibrary/src/org/videolan/medialibrary/Tools.java
+++ b/medialibrary/src/org/videolan/medialibrary/Tools.java
@@ -126,6 +126,6 @@ public class Tools {
 
     static String encodeVLCMrl(String mrl) {
         if (mrl.startsWith("/")) mrl = "file://"+mrl;
-        return VLCUtil.encodeVLCString(Uri.encode(Uri.decode(mrl), ":/"));
+        return VLCUtil.encodeVLCString(Uri.encode(Uri.decode(mrl), ":/@"));
     }
 }



More information about the Android mailing list