From 118274b4a05fad9c492dfc916a54780e049f8fbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 20 Feb 2010 21:05:54 +0200 Subject: [PATCH 1/1] RTP out: use make_path for SDP file --- modules/stream_out/rtp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.39.2