openbsd-ports/x11/vlc/patches/patch-projects_mozilla_vlcplugin_cpp
dcoppa d0a569e14d Disable inhibit and screensaver plugins since they cause problems
when the dbus daemon is running

Fix Help->About->Thanks dialog

Unbreak after xulrunner update (patches adapted from archlinux)

OK ajacoutot@, landry@
2010-06-17 07:42:16 +00:00

38 lines
1.5 KiB
Plaintext

$OpenBSD: patch-projects_mozilla_vlcplugin_cpp,v 1.1 2010/06/17 07:42:16 dcoppa Exp $
--- projects/mozilla/vlcplugin.cpp.orig Sun Mar 7 19:38:03 2010
+++ projects/mozilla/vlcplugin.cpp Sat Jun 12 22:45:02 2010
@@ -35,6 +35,7 @@
#include "vlcplugin.h"
#include "control/npolibvlc.h"
+#include <cstdlib>
#include <ctype.h>
/*****************************************************************************
@@ -227,8 +228,8 @@ NPError VlcPlugin::init(int argc, char* const argn[],
NPString script;
NPVariant result;
- script.utf8characters = docLocHref;
- script.utf8length = sizeof(docLocHref)-1;
+ script.UTF8Characters = docLocHref;
+ script.UTF8Length = sizeof(docLocHref)-1;
if( NPN_Evaluate(p_browser, plugin, &script, &result) )
{
@@ -236,11 +237,11 @@ NPError VlcPlugin::init(int argc, char* const argn[],
{
NPString &location = NPVARIANT_TO_STRING(result);
- psz_baseURL = (char *) malloc(location.utf8length+1);
+ psz_baseURL = (char *) malloc(location.UTF8Length+1);
if( psz_baseURL )
{
- strncpy(psz_baseURL, location.utf8characters, location.utf8length);
- psz_baseURL[location.utf8length] = '\0';
+ strncpy(psz_baseURL, location.UTF8Characters, location.UTF8Length);
+ psz_baseURL[location.UTF8Length] = '\0';
}
}
NPN_ReleaseVariantValue(&result);