[vlc-commits] [Git][videolan/vlc][master] input: always set the anchor in input_SplitMRL() calls

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Sep 26 10:12:40 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
b1191794 by Steve Lhomme at 2026-09-26T09:52:36+00:00
input: always set the anchor in input_SplitMRL() calls

In some cases it might have remained at NULL which is not supported by
mrl_FragmentSplit() via InputStreamHandleAnchor().

Fixes #30168

- - - - -


1 changed file:

- src/input/input.c


Changes:

=====================================
src/input/input.c
=====================================
@@ -2848,7 +2848,7 @@ static int InputSourceInit( input_source_t *in, input_thread_t *p_input,
                             const char *psz_forced_demux, bool b_in_can_fail )
 {
     input_thread_private_t *priv = input_priv(p_input);
-    const char *psz_access, *psz_demux, *psz_path, *psz_anchor = NULL;
+    const char *psz_access, *psz_demux, *psz_path, *psz_anchor;
     const bool master = priv->master == in;
 
     assert( psz_mrl );
@@ -3456,6 +3456,7 @@ static void input_SplitMRL( const char **access, const char **demux,
                             const char **path, const char **anchor, char *buf )
 {
     char *p;
+    *anchor = "";
 
     /* Separate <path> from <access>[/<demux>]:// */
     p = strchr( buf, ':');
@@ -3472,8 +3473,6 @@ static void input_SplitMRL( const char **access, const char **demux,
             *(p++) = '\0';
             *anchor = p;
         }
-        else
-            *anchor = "";
     }
     else
     {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b11917943e3a32578d65edd54f3d12023da29d46

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b11917943e3a32578d65edd54f3d12023da29d46
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list