Commit fb2512ec authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

- Add aggregate control URL

- Fix non-aggregate control URL
parent 71803a74
...@@ -693,8 +693,12 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url ) ...@@ -693,8 +693,12 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
if( psz_sdp == NULL ) if( psz_sdp == NULL )
return NULL; return NULL;
/* TODO: a=source-filter */ /* TODO: a=source-filter */
if( rtsp_url != NULL )
sdp_AddAttribute ( &psz_sdp, "control", "%s", rtsp_url );
/* FIXME: locking?! */ /* FIXME: locking?! */
for( i = 0; i < p_sys->i_es; i++ ) for( i = 0; i < p_sys->i_es; i++ )
{ {
...@@ -721,7 +725,8 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url ) ...@@ -721,7 +725,8 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
id->psz_rtpmap, id->psz_fmtp); id->psz_rtpmap, id->psz_fmtp);
if( rtsp_url != NULL ) if( rtsp_url != NULL )
sdp_AddAttribute ( &psz_sdp, "control", "/trackID=%d", i ); sdp_AddAttribute ( &psz_sdp, "control", "%s/trackID=%d",
rtsp_url, i );
} }
return psz_sdp; return psz_sdp;
......
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