Commit 0afbf878 authored by JP Dinger's avatar JP Dinger

moz plugin: This should fix compilation but I can't test right now.

parent 09020b63
......@@ -37,6 +37,7 @@
#include <ctype.h>
#include <pthread.h>
#include <stdio.h>
/*****************************************************************************
* VlcPlugin constructor and destructor
......@@ -136,11 +137,12 @@ void EventObj::callback(const libvlc_event_t* event)
void VlcPlugin::event_callback(const libvlc_event_t* event, void *param)
{
VlcPlugin *plugin = (VlcPlugin*)param;
plugin->events.callback(event);
#ifdef XP_UNIX
plugin->events.callback(event);
NPN_PluginThreadAsyncCall(plugin->getBrowser(), eventAsync, plugin);
#else
NPN_SetException(this, "NPN_PluginThreadAsyncCall not implemented yet.");
#warning NPN_PluginThreadAsyncCall not implemented yet.
printf("%s","No NPN_PluginThreadAsyncCall(), doing nothing.");
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment