[vlc-devel] commit: libvlc: delete callback in media_player_release. (Jean-Paul Saman )
git version control
git at videolan.org
Tue May 12 14:26:51 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun May 10 16:05:07 2009 +0200| [154637130684a19cad965b09b2607cc3b7c294ec] | committer: Jean-Paul Saman
libvlc: delete callback in media_player_release.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=154637130684a19cad965b09b2607cc3b7c294ec
---
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 a65b133..9f5c9cf 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -454,6 +454,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