Package: kaffeine-mozilla
Version: 0.4.3.1-1
Tags: patch

The existing kaffeine plugin fail to start a kaffeine process even
after the correct mime types used by
<URL:http://www1.nrk.no/nett-tv/klipp/386768>.  I added logging to the
plugin, and was able to figure out why.  The reason is the arguments
passed on to the plugin from the browser.  It currently handle href
and src arguments, while this web page make the browser pass the URL
using an url argument.  In the process, I noticed that the 'autostart'
argument is not 'true', but the number 1 instead.  This patch
implement support for both these arguments, and got the video playing
from www1.nrk.no.

--- kaffeine-mozilla-0.4.3.1.dfsg.orig/src/plugin.c
+++ kaffeine-mozilla-0.4.3.1.dfsg/src/plugin.c
@@ -355,8 +412,12 @@
       } else if (!strcasecmp (argn[i], "src") && !globals.url) {
        got_url (argv[i]);
        xprintf ("got src url %s\n", globals.url);
+      } else if (!strcasecmp (argn[i], "url") && !globals.url) {
+       got_url (argv[i]);
+       xprintf ("got url %s\n", globals.url);
       } else if (!strcasecmp (argn[i], "autostart")) {
-       this->autostart = !strcasecmp (argv[i], "true");
+       this->autostart = !strcasecmp (argv[i], "true")
+         || !strcasecmp (argv[i], "1") ;
        xprintf ("got autostart %d\n", this->autostart);
       } else if (!strcasecmp (argn[i], "controls")) {
        this->imageWindow = !strcasecmp (argv[i], "imagewindow");

Happy hacking,
--
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to