Commit e17e8321 authored by Sébastien Escudier's avatar Sébastien Escudier Committed by Rémi Denis-Courmont

VLM : move a mutex lock/unlock

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 1fd91b99
......@@ -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;
......
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