summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/mplayer-share/patches/patch-ab18
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;
+ }
+