]> git.sesse.net Git - vlc/blobdiff - projects/mozilla/vlcplugin.h
mozilla: fix building for win32 (events not implemented yet)
[vlc] / projects / mozilla / vlcplugin.h
index 3e85840deaffd3c20548be2eb67193e3675e8ce7..4c9a11cf294c75426e7ed83075f58e28075ac4bf 100644 (file)
@@ -135,8 +135,8 @@ private:
     void *_ud;
 public:
     EventObj(): _em(NULL)  { /* deferred to init() */ }
-    bool init() { return pthread_mutex_init(&mutex, NULL) == 0; }
-    ~EventObj() { pthread_mutex_destroy(&mutex); }
+    bool init();
+    ~EventObj();
 
     void deliver(NPP browser);
     void callback(const libvlc_event_t*);
@@ -151,7 +151,9 @@ private:
     lr_l _llist;
     ev_l _elist;
 
+#if defined(XP_UNIX)
     pthread_mutex_t mutex;
+#endif
 
     bool ask_for_event(event_t e);
     void unask_for_event(event_t e);