]> git.sesse.net Git - vlc/commitdiff
RTP out: use make_path for SDP file
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 20 Feb 2010 19:05:54 +0000 (21:05 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 20 Feb 2010 19:05:54 +0000 (21:05 +0200)
modules/stream_out/rtp.c

index 49376867081d40b13d8b0344f7c322b36404876b..bbd6f3418889c2b97366711b4a0f110078db842d 100644 (file)
@@ -699,13 +699,9 @@ static void SDPHandleUrl( sout_stream_t *p_stream, const char *psz_url )
             msg_Err( p_stream, "you can use sdp=file:// only once" );
             goto out;
         }
-        psz_url = &psz_url[5];
-        if( psz_url[0] == '/' && psz_url[1] == '/' )
-            psz_url += 2;
-        p_sys->psz_sdp_file = strdup( psz_url );
+        p_sys->psz_sdp_file = make_path( psz_url );
         if( p_sys->psz_sdp_file == NULL )
             goto out;
-        decode_URI( p_sys->psz_sdp_file ); /* FIXME? */
         FileSetup( p_stream );
     }
     else