[vlc-devel] commit: RTP out: use make_path for SDP file ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 20 20:11:37 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 20 21:05:54 2010 +0200| [118274b4a05fad9c492dfc916a54780e049f8fbb] | committer: Rémi Denis-Courmont 

RTP out: use make_path for SDP file

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=118274b4a05fad9c492dfc916a54780e049f8fbb
---

 modules/stream_out/rtp.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 4937686..bbd6f34 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -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




More information about the vlc-devel mailing list