[Mplayer-cvslog] CVS: main/loader win32.c,1.82,1.83
Alex Beregszaszi
alex at mplayerhq.hu
Sun Jan 25 21:03:50 CET 2004
Update of /cvsroot/mplayer/main/loader
In directory mail:/tmp/cvs-serv22886
Modified Files:
win32.c
Log Message:
Don't mutex_unlock if it was never locked. Patch by Min Sik Kim
Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- win32.c 5 Sep 2003 22:08:23 -0000 1.82
+++ win32.c 25 Jan 2004 20:03:47 -0000 1.83
@@ -1374,8 +1374,11 @@
printf("Win32 Warning: Leaving uninitialized Critical Section %p!!\n", c);
return;
}
- cs->locked=0;
- pthread_mutex_unlock(&(cs->mutex));
+ if (cs->locked)
+ {
+ cs->locked=0;
+ pthread_mutex_unlock(&(cs->mutex));
+ }
return;
}
More information about the MPlayer-cvslog
mailing list