[Android] Medialibrary: addStream, remove encoding for title

Duncan McNamara git at videolan.org
Wed Nov 20 06:47:53 UTC 2024


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Jun 17 14:12:17 2024 +0200| [1aaa4ef95bda10c651f1f0e15816962ec9533a6f] | committer: Duncan McNamara

Medialibrary: addStream, remove encoding for title

There is no need to encode a title, it isn't used with a filesystem,
only for display purposes. No titles are encoded when added to the
medialibrary, which means they aren't decoded either when used, this
caused an issue when using addStream from a current playback.

Fixes #3067

> https://code.videolan.org/videolan/vlc-android/commit/1aaa4ef95bda10c651f1f0e15816962ec9533a6f
---

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

diff --git a/medialibrary/src/org/videolan/medialibrary/MedialibraryImpl.java b/medialibrary/src/org/videolan/medialibrary/MedialibraryImpl.java
index fbe57f1e30..beae616148 100644
--- a/medialibrary/src/org/videolan/medialibrary/MedialibraryImpl.java
+++ b/medialibrary/src/org/videolan/medialibrary/MedialibraryImpl.java
@@ -476,7 +476,7 @@ public class MedialibraryImpl extends Medialibrary {
     @Nullable
     public MediaWrapper addStream(String mrl, String title) {
         final String vlcMrl = Tools.encodeVLCMrl(mrl);
-        final String vlcTitle = Tools.encodeVLCMrl(title);
+        final String vlcTitle = title;
         return mIsInitiated && !TextUtils.isEmpty(vlcMrl) ? nativeAddStream(vlcMrl, vlcTitle) : null;
     }
 



More information about the Android mailing list