[vlc-devel] commit: Small fixes for ts_mux (Kaloyan Kovachev )
git version control
git at videolan.org
Sat Jun 28 18:59:34 CEST 2008
vlc | branch: master | Kaloyan Kovachev <kkovachev at varna.net> | Fri Jun 27 14:00:49 2008 +0300| [6d6c549c4be66337c41293be64cb04fcf151300b]
Small fixes for ts_mux
Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d6c549c4be66337c41293be64cb04fcf151300b
---
modules/mux/mpeg/ts.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index b73808e..d347e7d 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -817,6 +817,7 @@ static int Open( vlc_object_t *p_this )
else
{
csa_Delete( p_sys->csa );
+ p_sys->csa = NULL;
}
if( p_sys->csa )
@@ -874,9 +875,9 @@ static void Close( vlc_object_t * p_this )
var_DelCallback( p_mux, SOUT_CFG_PREFIX "csa2-ck", ChangeKeyCallback, NULL );
var_DelCallback( p_mux, SOUT_CFG_PREFIX "csa-use", ActiveKeyCallback, NULL );
csa_Delete( p_sys->csa );
+ p_sys->csa = NULL;
}
vlc_mutex_unlock( &p_sys->csa_lock );
- vlc_mutex_destroy( &p_sys->csa_lock );
for( i = 0; i < MAX_PMT; i++ )
{
@@ -884,6 +885,7 @@ static void Close( vlc_object_t * p_this )
free( p_sys->sdt_descriptors[i].psz_provider );
}
+ vlc_mutex_destroy( &p_sys->csa_lock );
free( p_sys->dvbpmt );
free( p_sys );
}
More information about the vlc-devel
mailing list