[vlc-devel] commit: mosaic_bridge: add missing var_DelCallback (fix a race condition) ( Rémi Duraffort )

git version control git at videolan.org
Thu Oct 15 15:00:49 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Oct 15 10:59:35 2009 +0200| [d5f3c2a5f50c5b384079f624e86b841ba4b95fda] | committer: Rémi Duraffort 

mosaic_bridge: add missing var_DelCallback (fix a race condition)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5f3c2a5f50c5b384079f624e86b841ba4b95fda
---

 modules/stream_out/mosaic_bridge.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/mosaic_bridge.c b/modules/stream_out/mosaic_bridge.c
index 076b501..30aab1a 100644
--- a/modules/stream_out/mosaic_bridge.c
+++ b/modules/stream_out/mosaic_bridge.c
@@ -272,6 +272,13 @@ static void Close( vlc_object_t * p_this )
     sout_stream_t     *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
+    /* Delete the callbacks */
+    var_DelCallback( p_stream, CFG_PREFIX "height", HeightCallback, p_stream );
+    var_DelCallback( p_stream, CFG_PREFIX "width", WidthCallback, p_stream );
+    var_DelCallback( p_stream, CFG_PREFIX "alpha", alphaCallback, p_stream );
+    var_DelCallback( p_stream, CFG_PREFIX "x", xCallback, p_stream );
+    var_DelCallback( p_stream, CFG_PREFIX "y", yCallback, p_stream );
+
     p_stream->p_sout->i_out_pace_nocontrol--;
 
     free( p_sys->psz_id );




More information about the vlc-devel mailing list