From 5811a7d6a760db4064b7e698abf551f181f6c14d Mon Sep 17 00:00:00 2001 From: Marian Durkovic Date: Mon, 24 Oct 2005 07:33:08 +0000 Subject: [PATCH] fixed SAP announcement deletion for muxed streams --- modules/stream_out/rtp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ); -- 2.39.2