Commit 36b542a2 authored by Damien Fouilleul's avatar Damien Fouilleul

vlc_threads.h: now that vlc_object_t is optional for mutexes, make sure that...

vlc_threads.h: now that vlc_object_t is optional for mutexes, make sure that we deal with it properly
parent 97d02b14
......@@ -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)",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment