From: RĂ©mi Denis-Courmont Date: Sat, 20 Feb 2010 19:05:54 +0000 (+0200) Subject: RTP out: use make_path for SDP file X-Git-Tag: 1.1.0-pre1~786 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=118274b4a05fad9c492dfc916a54780e049f8fbb;hp=3ecd0eb5dcb4172a9eaac984426b9d4899eb265c;p=vlc RTP out: use make_path for SDP file --- diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 4937686708..bbd6f34188 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