]> git.sesse.net Git - vlc/commitdiff
live555: fix RTSP URL when it contains no path part
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 5 May 2010 05:50:20 +0000 (07:50 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 5 May 2010 05:50:20 +0000 (07:50 +0200)
modules/demux/live555.cpp

index e6fab0a400a21cc7b21e90e6928e8127f16d80f7..9a4f56cdeaded482d68e654ba0480aaeeb7533f4 100644 (file)
@@ -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;
     }