[vlc-devel] commit: moz plugin: This should fix compilation but I can't test right now. (JP Dinger )

git version control git at videolan.org
Mon Feb 1 01:58:04 CET 2010


vlc | branch: master | JP Dinger <jpd at videolan.org> | Mon Feb  1 01:54:08 2010 +0100| [0afbf8780823b4530a698443c33546f1c758bf39] | committer: JP Dinger 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0afbf8780823b4530a698443c33546f1c758bf39
---

 projects/mozilla/vlcplugin.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 4a6b580..af4277a 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -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
 }
 




More information about the vlc-devel mailing list