[vlc-devel] commit: Delete sub-filter callback before destroying p_spu memebers... ( Laurent Aimar )

git version control git at videolan.org
Mon Feb 2 22:25:27 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Feb  2 22:09:25 2009 +0100| [8a353bf6dc813d0f54810df685504a0ec458a522] | committer: Laurent Aimar 

Delete sub-filter callback before destroying p_spu memebers...

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

 src/video_output/vout_subpictures.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index d20d4e0..a86b948 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -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 );
 




More information about the vlc-devel mailing list