]> git.sesse.net Git - vlc/commitdiff
moz plugin: This should fix compilation but I can't test right now.
authorJP Dinger <jpd@videolan.org>
Mon, 1 Feb 2010 00:54:08 +0000 (01:54 +0100)
committerJP Dinger <jpd@videolan.org>
Mon, 1 Feb 2010 00:54:08 +0000 (01:54 +0100)
projects/mozilla/vlcplugin.cpp

index 4a6b5808faa7a8fb049165f6e494df4375ab5fa4..af4277a772c27044cd06831b61e441f4e5b0081b 100644 (file)
@@ -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
 }