[vlc-devel] [PATCH] rtsp: fix RTP-Info header syntax

Rémi Denis-Courmont remi at remlab.net
Wed May 13 19:20:08 CEST 2009


Le mercredi 13 mai 2009 19:26:01 Pierre Ynard, vous avez écrit :
> As per RFC2326, the correct syntax includes a "url=" that is missing
> here. Tested (and bug found) with a Real Player client.

Isn't it supposed to be an URL rather than a relative path?
>
>
> diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
> index 30e3552..523a1d4 100644
> --- a/modules/stream_out/rtsp.c
> +++ b/modules/stream_out/rtsp.c
> @@ -635,7 +635,7 @@ static int RtspHandler( rtsp_stream_t *rtsp,
> rtsp_stream_id_t *id, {
>                  /* FIXME: we really need to limit the number of tracks...
> */ char info[ses->trackc * ( strlen( control )
> -                                  + sizeof("/trackID=123;seq=65535, ") ) +
> 1]; +                              + sizeof("url=/trackID=123;seq=65535, ")
> ) + 1]; size_t infolen = 0;
>
>                  for( int i = 0; i < ses->trackc; i++ )
> @@ -649,7 +649,8 @@ static int RtspHandler( rtsp_stream_t *rtsp,
> rtsp_stream_id_t *id, rtp_add_sink( tr->id, tr->fd, false ); }
>                          infolen += sprintf( info + infolen,
> -                                            "%s/trackID=%u;seq=%u, ",
> control, +                                           
> "url=%s/trackID=%u;seq=%u, ", +                                           
> control,
>                                              rtp_get_num( tr->id ),
>                                              rtp_get_seq( tr->id ) );
>                      }
>
>
> Regards,


-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list