From: Pierre Ynard Date: Wed, 5 May 2010 05:50:20 +0000 (+0200) Subject: live555: fix RTSP URL when it contains no path part X-Git-Tag: 1.2.0-pre1~6759 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a7dd0605970b86e214c55500539a84aed93436ac;p=vlc live555: fix RTSP URL when it contains no path part --- diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index e6fab0a400..9a4f56cdea 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -487,7 +487,8 @@ static int Connect( demux_t *p_demux ) else { if( asprintf( &psz_url, "rtsp://%s:%d%s", p_sys->url.psz_host, - p_sys->url.i_port, p_sys->url.psz_path ) == -1 ) + p_sys->url.i_port, + strempty( p_sys->url.psz_path ) ) == -1 ) return VLC_ENOMEM; }