From 75912d9cf69e22a5fd637bb5647e4cbdfba608f3 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sat, 3 Nov 2007 12:16:02 +0000 Subject: [PATCH] control/core.c: Fix a warning about lock being an usunsed variable, by using lock. --- src/control/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/control/core.c b/src/control/core.c index a3cf347bf0..69f94bdd6d 100644 --- a/src/control/core.c +++ b/src/control/core.c @@ -136,15 +136,15 @@ void libvlc_release( libvlc_instance_t *p_instance, libvlc_exception_t *p_e ) assert( p_instance->ref_count > 0 ); - vlc_mutex_lock( &p_instance->instance_lock ); + vlc_mutex_lock( lock ); refs = --p_instance->ref_count; if( refs == 0 ) libvlc_event_fini( p_instance, p_e ); - vlc_mutex_unlock( &p_instance->instance_lock ); + vlc_mutex_unlock( lock ); if( refs == 0 ) { - vlc_mutex_destroy( &p_instance->instance_lock ); + vlc_mutex_destroy( lock ); vlc_mutex_destroy( &p_instance->event_callback_lock ); libvlc_InternalCleanup( p_instance->p_libvlc_int ); libvlc_InternalDestroy( p_instance->p_libvlc_int, VLC_FALSE ); -- 2.39.2