[vlc-devel] commit: libvlc: delete callback in media_player_release. (Jean-Paul Saman )

git version control git at videolan.org
Mon May 25 00:36:28 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Sun May 10 16:05:07 2009 +0200| [e755c4dd0f7a9890e2145a90cd765175d06373cc] | committer: Jean-Paul Saman 

libvlc: delete callback in media_player_release.
(cherry picked from commit 154637130684a19cad965b09b2607cc3b7c294ec)

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

 src/control/media_player.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index f358ad4..51a4739 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -455,6 +455,11 @@ void libvlc_media_player_release( libvlc_media_player_t *p_mi )
         return;
     }
     vlc_mutex_unlock( &p_mi->object_lock );
+
+    /* Detach Callback from the main libvlc object */
+    var_DelCallback( p_mi->p_libvlc_instance->p_libvlc_int,
+                     "vout-snapshottaken", SnapshotTakenCallback, p_mi );
+
     vlc_mutex_destroy( &p_mi->object_lock );
 
     release_input_thread( p_mi, true );




More information about the vlc-devel mailing list