[Android] Revert "Playback: Enforce mrl encoding"

Geoffrey Métais git at videolan.org
Tue Feb 26 12:31:05 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 26 12:04:38 2019 +0100| [0be707ad0bbc1c1de85fa322fc401d72010baedf] | committer: Geoffrey Métais

Revert "Playback: Enforce mrl encoding"

This reverts commit a26231576a05e3c79fb68e80230e696d438beaac.

> https://code.videolan.org/videolan/vlc-android/commit/0be707ad0bbc1c1de85fa322fc401d72010baedf
---

 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index ebb7530a4..bc8a3cff6 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -17,7 +17,6 @@ import org.videolan.libvlc.MediaPlayer
 import org.videolan.libvlc.RendererItem
 import org.videolan.libvlc.util.AndroidUtil
 import org.videolan.medialibrary.Medialibrary
-import org.videolan.medialibrary.Tools
 import org.videolan.medialibrary.media.MediaWrapper
 import org.videolan.vlc.BuildConfig
 import org.videolan.vlc.PlaybackService
@@ -294,7 +293,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 return
             }
             val start = getStartTime(mw)
-            val media = Media(VLCInstance.get(), Uri.parse(Tools.encodeVLCString(uri.toString())))
+            val media = Media(VLCInstance.get(), Uri.parse(Uri.decode(uri.toString())))
             media.addOption(":start-time=$start")
             VLCOptions.setMediaOptions(media, ctx, flags or mw.flags)
             /* keeping only video during benchmark */



More information about the Android mailing list