[vlc-commits] vlcshell: don't enforce windowless on Mac
Felix Paul Kühne
git at videolan.org
Fri Jan 4 12:24:49 CET 2013
npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan 4 12:22:55 2013 +0100| [de541282362945ac32bf1f56c7d3a030deb286aa] | committer: Felix Paul Kühne
vlcshell: don't enforce windowless on Mac
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=de541282362945ac32bf1f56c7d3a030deb286aa
---
npapi/vlcshell.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/npapi/vlcshell.cpp b/npapi/vlcshell.cpp
index 1462cca..74d9c2b 100644
--- a/npapi/vlcshell.cpp
+++ b/npapi/vlcshell.cpp
@@ -245,13 +245,9 @@ NPError NPP_New( NPMIMEType, NPP instance,
return NPERR_INVALID_INSTANCE_ERROR;
}
-#if defined(XP_MACOSX)
- bool windowless = true;
-#warning BAD, please FIX
-#else
+ bool windowless = false;
/* we need to tell whether the plugin will be windowless
* before it is instantiated */
- bool windowless = false;
for( int i = 0; i < argc; i++ )
{
if( !strcmp( argn[i], "windowless" ) )
@@ -260,7 +256,6 @@ NPError NPP_New( NPMIMEType, NPP instance,
break;
}
}
-#endif
if( windowless )
{
More information about the vlc-commits
mailing list