[vlc-commits] commit: VLM : move a mutex lock/unlock ( Sébastien Escudier )
git at videolan.org
git at videolan.org
Fri Mar 26 18:15:03 CET 2010
vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Thu Mar 18 11:31:41 2010 +0100| [e17e8321340de0afac7f5d471215692b0ea16f65] | committer: Rémi Denis-Courmont
VLM : move a mutex lock/unlock
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e17e8321340de0afac7f5d471215692b0ea16f65
---
src/input/vlm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/input/vlm.c b/src/input/vlm.c
index 5b61be5..bc6756e 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;
More information about the vlc-commits
mailing list