]> git.sesse.net Git - vlc/commitdiff
stream redirected path is a path, not a URI (i.e. no scheme)
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 1 Mar 2010 21:21:49 +0000 (23:21 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 2 Mar 2010 17:13:56 +0000 (19:13 +0200)
src/input/input.c

index 0ab34db518efc09be50164ea0564ab949bdfd839..9b6512108356b8a81b3ce48a8bc351c989ad831c 100644 (file)
@@ -2632,26 +2632,11 @@ static int InputSourceInit( input_thread_t *p_input,
             psz_demux = in->p_access->psz_demux;
         }
 
-        {
-            /* Take access/stream redirections into account */
-            char *psz_real_path;
-            char *psz_buf = NULL;
-            if( in->p_stream->psz_path )
-            {
-                const char *psz_a, *psz_d;
-                psz_buf = strdup( in->p_stream->psz_path );
-                input_SplitMRL( &psz_a, &psz_d, &psz_real_path, psz_buf );
-            }
-            else
-            {
-                psz_real_path = psz_path;
-            }
-            in->p_demux = demux_New( p_input, p_input, psz_access, psz_demux,
-                                      psz_real_path,
-                                      in->p_stream, p_input->p->p_es_out,
-                                      p_input->b_preparsing );
-            free( psz_buf );
-        }
+        in->p_demux = demux_New( p_input, p_input, psz_access, psz_demux,
+                   /* Take access/stream redirections into account: */
+                   in->p_stream->psz_path ? in->p_stream->psz_path : psz_path,
+                                 in->p_stream, p_input->p->p_es_out,
+                                 p_input->b_preparsing );
 
         if( in->p_demux == NULL )
         {