From 36b542a2ab4861d1d5261ee816ee604c90bc5b54 Mon Sep 17 00:00:00 2001 From: Damien Fouilleul Date: Tue, 22 Jan 2008 19:03:20 +0000 Subject: [PATCH] vlc_threads.h: now that vlc_object_t is optional for mutexes, make sure that we deal with it properly --- include/vlc_threads_funcs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h index 696b39f758..b1e0f45e2d 100644 --- a/include/vlc_threads_funcs.h +++ b/include/vlc_threads_funcs.h @@ -142,7 +142,7 @@ static inline int __vlc_mutex_lock( const char * psz_file, int i_line, #endif - if( i_result ) + if( i_result && p_mutex->p_this ) { msg_Err( p_mutex->p_this, "thread %li: mutex_lock failed at %s:%d (%d:%m)", @@ -209,7 +209,7 @@ static inline int __vlc_mutex_unlock( const char * psz_file, int i_line, #endif - if( i_result ) + if( i_result && p_mutex->p_this ) { msg_Err( p_mutex->p_this, "thread %li: mutex_unlock failed at %s:%d (%d:%m)", -- 2.20.1