freebsd-ports/www/mplayer-plugin/files/patch-Source_plugin-support.cpp
Joe Marcus Clarke 22105c48ce Update to 2.31.
PR:		93343
Submitted by:	Adi Pircalabu <apircalabu@bitdefender.com>
2006-02-18 22:16:20 +00:00

16 lines
504 B
C++

--- Source/plugin-support.cpp.orig Sat Feb 18 17:05:30 2006
+++ Source/plugin-support.cpp Sat Feb 18 17:05:58 2006
@@ -486,9 +486,13 @@ void killmplayer(nsPluginInstance * inst
if (instance->paused == 1)
sendCommand(instance, "pause\n");
sendCommand(instance, "quit\n");
+#ifndef BSD
pthread_mutex_lock(&(instance->read_mutex));
+#endif
instance->cancelled = 1;
+#ifndef BSD
pthread_mutex_unlock(&(instance->read_mutex));
+#endif
/* count = 0;
while (count < 500) {