openbsd-ports/www/mplayerplug-in/patches/patch-Source_plugin-support_cpp
jasper 73ded9d05e - update mplayerplug-in to 3.55
- install plugins into a more appropriate directory (prodded by claudio@,
done with help from martynas@)
- fix mplayer zombie and firefox freeze when closing a movie,
with mplayer still playing it.

this makes mplayerplug-in work as it should've.

from mikolaj kucharski, thanks!
2009-02-11 22:54:01 +00:00

21 lines
693 B
Plaintext

$OpenBSD: patch-Source_plugin-support_cpp,v 1.1 2009/02/11 22:54:01 jasper Exp $
http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/mplayer-plugin/files/patch-Source_plugin-support.cpp
--- Source/plugin-support.cpp.orig Wed May 28 15:50:46 2008
+++ Source/plugin-support.cpp Mon Feb 9 11:32:08 2009
@@ -505,9 +505,13 @@ void killmplayer(nsPluginInstance * instance)
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) {