Commit c523828d authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* sgimb.c: merging 9295:9296 to trunk

parent 4842d4ca
...@@ -315,9 +315,9 @@ static int Demux ( demux_t *p_demux ) ...@@ -315,9 +315,9 @@ static int Demux ( demux_t *p_demux )
{ {
char *temp; char *temp;
temp = (char *)malloc( sizeof("rtsp/live://" ":" "123456789") + temp = (char *)malloc( sizeof("rtsp://" ":" "123456789") +
strlen( p_sys->psz_server ) + strlen( p_sys->psz_location ) ); strlen( p_sys->psz_server ) + strlen( p_sys->psz_location ) );
sprintf( temp, "rtsp/live://" "%s:%i%s", sprintf( temp, "rtsp://" "%s:%i%s",
p_sys->psz_server, p_sys->i_port > 0 ? p_sys->i_port : 554, p_sys->psz_location ); p_sys->psz_server, p_sys->i_port > 0 ? p_sys->i_port : 554, p_sys->psz_location );
p_sys->psz_uri = strdup( temp ); p_sys->psz_uri = strdup( temp );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment