Delete sub-filter callback before destroying p_spu memebers...
authorLaurent Aimar <fenrir@videolan.org>
Mon, 2 Feb 2009 21:09:25 +0000 (22:09 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 2 Feb 2009 21:25:08 +0000 (22:25 +0100)
src/video_output/vout_subpictures.c

index d20d4e0..a86b948 100644 (file)
@@ -280,6 +280,8 @@ void spu_Destroy( spu_t *p_spu )
 {
     spu_private_t *p_sys = p_spu->p;
 
+    var_DelCallback( p_spu, "sub-filter", SubFilterCallback, p_spu );
+
     if( p_sys->p_blend )
         FilterRelease( p_sys->p_blend );