From e17e8321340de0afac7f5d471215692b0ea16f65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Escudier?= Date: Thu, 18 Mar 2010 11:31:41 +0100 Subject: [PATCH] VLM : move a mutex lock/unlock MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- src/input/vlm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/vlm.c b/src/input/vlm.c index 5b61be56a1..bc6756eaa2 100644 --- a/src/input/vlm.c +++ b/src/input/vlm.c @@ -365,12 +365,12 @@ static void* Manage( void* p_object ) int canc = vlc_savecancel (); i_lastcheck = vlm_Date(); + vlc_mutex_lock( &vlm->lock ); while( !vlm->b_die ) { char **ppsz_scheduled_commands = NULL; int i_scheduled_commands = 0; - vlc_mutex_lock( &vlm->lock ); if( i_nextschedule ) vlc_cond_timedwait( &vlm->wait, &vlm->lock, i_nextschedule ); else @@ -474,8 +474,8 @@ static void* Manage( void* p_object ) i_lastcheck = i_time; - vlc_mutex_unlock( &vlm->lock ); } + vlc_mutex_unlock( &vlm->lock ); vlc_restorecancel (canc); return NULL; -- 2.39.2