Commit e675f5fe authored by Pierre Ynard's avatar Pierre Ynard

rtp sout: destroy mutex

(cherry picked from commit 875531f7c312b14d372827f8fa55ed7c0a182c2f)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 9faef937
......@@ -504,6 +504,7 @@ static int Open( vlc_object_t *p_this )
msg_Err( p_stream, "unsupported muxer type for RTP (only TS/PS)" );
free( psz );
vlc_mutex_destroy( &p_sys->lock_sdp );
vlc_mutex_destroy( &p_sys->lock_ts );
vlc_mutex_destroy( &p_sys->lock_es );
free( p_sys->psz_destination );
free( p_sys );
......@@ -519,6 +520,7 @@ static int Open( vlc_object_t *p_this )
msg_Err( p_stream, "cannot create muxer" );
sout_AccessOutDelete( p_sys->p_grab );
vlc_mutex_destroy( &p_sys->lock_sdp );
vlc_mutex_destroy( &p_sys->lock_ts );
vlc_mutex_destroy( &p_sys->lock_es );
free( p_sys->psz_destination );
free( p_sys );
......@@ -531,6 +533,7 @@ static int Open( vlc_object_t *p_this )
sout_MuxDelete( p_sys->p_mux );
sout_AccessOutDelete( p_sys->p_grab );
vlc_mutex_destroy( &p_sys->lock_sdp );
vlc_mutex_destroy( &p_sys->lock_ts );
vlc_mutex_destroy( &p_sys->lock_es );
free( p_sys->psz_destination );
free( p_sys );
......
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