Mercurial > mplayer.hg
comparison loader/win32.c @ 11852:0bbdbc75532f
Don't mutex_unlock if it was never locked. Patch by Min Sik Kim
author | alex |
---|---|
date | Sun, 25 Jan 2004 20:03:47 +0000 |
parents | fa41f83edff0 |
children | b5805b819ff9 |
comparison
equal
deleted
inserted
replaced
11851:dcc8d9bb5739 | 11852:0bbdbc75532f |
---|---|
1372 if (!cs) | 1372 if (!cs) |
1373 { | 1373 { |
1374 printf("Win32 Warning: Leaving uninitialized Critical Section %p!!\n", c); | 1374 printf("Win32 Warning: Leaving uninitialized Critical Section %p!!\n", c); |
1375 return; | 1375 return; |
1376 } | 1376 } |
1377 cs->locked=0; | 1377 if (cs->locked) |
1378 pthread_mutex_unlock(&(cs->mutex)); | 1378 { |
1379 cs->locked=0; | |
1380 pthread_mutex_unlock(&(cs->mutex)); | |
1381 } | |
1379 return; | 1382 return; |
1380 } | 1383 } |
1381 | 1384 |
1382 static void expfree(void* mem); /* forward declaration */ | 1385 static void expfree(void* mem); /* forward declaration */ |
1383 | 1386 |