npapi-vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Thu Jan  
3 16:58:07 2013 +0100| [ce1d2dee70b141b7d9b8a66ad79007df82bdde74] | committer: 
Jean-Baptiste Kempf

Force Windowless on Mac

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

 npapi/vlcshell.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/npapi/vlcshell.cpp b/npapi/vlcshell.cpp
index 70f08cb..1462cca 100644
--- a/npapi/vlcshell.cpp
+++ b/npapi/vlcshell.cpp
@@ -245,6 +245,10 @@ NPError NPP_New( NPMIMEType, NPP instance,
         return NPERR_INVALID_INSTANCE_ERROR;
     }
 
+#if defined(XP_MACOSX)
+    bool windowless = true;
+#warning BAD, please FIX
+#else
     /* we need to tell whether the plugin will be windowless
      * before it is instantiated */
     bool windowless = false;
@@ -256,6 +260,7 @@ NPError NPP_New( NPMIMEType, NPP instance,
             break;
         }
     }
+#endif
 
     if( windowless )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to