summaryrefslogtreecommitdiff
path: root/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/mplayer-plugin/files/patch-Source_mplayerplug-in.c')
-rw-r--r--www/mplayer-plugin/files/patch-Source_mplayerplug-in.c42
1 files changed, 39 insertions, 3 deletions
diff --git a/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c b/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c
index 463db10b7ad5..928ca0cbbc19 100644
--- a/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c
+++ b/www/mplayer-plugin/files/patch-Source_mplayerplug-in.c
@@ -1,6 +1,15 @@
---- Source/mplayerplug-in.c.orig Wed Sep 10 10:34:15 2003
-+++ Source/mplayerplug-in.c Mon Sep 29 00:43:56 2003
-@@ -67,7 +67,7 @@
+--- Source/mplayerplug-in.c.orig Fri Oct 3 10:54:52 2003
++++ Source/mplayerplug-in.c Sun Oct 5 02:45:25 2003
+@@ -28,7 +28,7 @@
+ */
+
+ #include "mplayerplug-in.h"
+-pthread_mutex_t playlist_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
++pthread_mutex_t playlist_mutex;
+
+ // This routine is only called when the plugin library is newer than the pluginrc file
+
+@@ -71,7 +71,7 @@
}
if (config == NULL) {
@@ -9,3 +18,30 @@
}
if (config == NULL) {
+@@ -148,7 +148,7 @@
+ }
+
+ if (customtypes == NULL) {
+- customtypes = fopen("/etc/mplayerplug-in.types", "r");
++ customtypes = fopen("%%PREFIX%%/etc/mplayerplug-in.types", "r");
+ }
+
+ if (customtypes != NULL) {
+@@ -274,6 +274,7 @@
+ char parse[1000];
+ char logfile[1000];
+ char *cp;
++ pthread_mutexattr_t attr;
+
+ if (instance == NULL)
+ return NPERR_INVALID_INSTANCE_ERROR;
+@@ -281,6 +282,9 @@
+ instance->pdata = NPN_MemAlloc(sizeof(PluginInstance));
+ This = (PluginInstance *) instance->pdata;
+ InitPrivateData(instance);
++ pthread_mutexattr_init(&attr);
++ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
++ pthread_mutex_init(&playlist_mutex, &attr);
+
+ DESTROYED = 0;
+