From: Marian Durkovic Date: Mon, 24 Oct 2005 07:33:08 +0000 (+0000) Subject: fixed SAP announcement deletion for muxed streams X-Git-Tag: 0.8.4~157 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5811a7d6a760db4064b7e698abf551f181f6c14d;p=vlc fixed SAP announcement deletion for muxed streams --- diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c index 2d422af0a9..f62e3f1578 100644 --- a/modules/stream_out/rtp.c +++ b/modules/stream_out/rtp.c @@ -594,6 +594,11 @@ static void Close( vlc_object_t * p_this ) { block_Release( p_sys->packet ); } + if( p_sys->b_export_sap ) + { + p_sys->p_mux = NULL; + SapSetup( p_stream ); + } } while( p_sys->i_rtsp > 0 ) @@ -1175,7 +1180,7 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id ) if( id->rtsp_access ) free( id->rtsp_access ); /* Update SDP (sap/file) */ - if( p_sys->b_export_sap ) SapSetup( p_stream ); + if( p_sys->b_export_sap && !p_sys->p_mux ) SapSetup( p_stream ); if( p_sys->b_export_sdp_file ) FileSetup( p_stream ); free( id );