diff options
author | tron <tron@pkgsrc.org> | 2004-01-24 15:00:26 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-01-24 15:00:26 +0000 |
commit | b833e26d8aa703b7c73b02d9de6cedf56c66bc0c (patch) | |
tree | 277060a755e5e235371b9b3a0426a6407e617fd2 | |
parent | a07396feb813613ed3de6ca9d20986ad3ad84f80 (diff) | |
download | pkgsrc-b833e26d8aa703b7c73b02d9de6cedf56c66bc0c.tar.gz |
Fix Posix Threads locking problem as suggested by Min Sik Kim on the
"current-users" mailing list.
-rw-r--r-- | graphics/mplayer-share/patches/patch-ab | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/mplayer-share/patches/patch-ab b/graphics/mplayer-share/patches/patch-ab new file mode 100644 index 00000000000..530f869b7d2 --- /dev/null +++ b/graphics/mplayer-share/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.11 2004/01/24 15:00:26 tron Exp $ + +--- loader/win32.c.orig 2003-09-06 00:08:23.000000000 +0200 ++++ loader/win32.c 2004-01-24 15:39:14.000000000 +0100 +@@ -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; + } + |