[vlc-commits] commit: live555: fix RTSP URL when it contains no path part (Pierre Ynard )

git at videolan.org git at videolan.org
Wed May 5 12:13:08 CEST 2010


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed May  5 07:50:20 2010 +0200| [f41035fb96c7002efde91905bfa36b75f02cb5e0] | committer: Jean-Baptiste Kempf 

live555: fix RTSP URL when it contains no path part
(cherry picked from commit a7dd0605970b86e214c55500539a84aed93436ac)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/live555.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index e6fab0a..9a4f56c 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;
     }
 



More information about the vlc-commits mailing list