[vlc-commits] npmac: fix CoreAnimation drawing model fallback

Felix Paul Kühne git at videolan.org
Tue Jan 1 13:55:37 CET 2013


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jan  1 13:55:30 2013 +0100| [05a88d9fadbac3767af38e2bdf502fc6b3bf4a4c] | committer: Felix Paul Kühne

npmac: fix CoreAnimation drawing model fallback

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

 npapi/support/npmac.cpp |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/npapi/support/npmac.cpp b/npapi/support/npmac.cpp
index 99bc0ac..3eff4e9 100644
--- a/npapi/support/npmac.cpp
+++ b/npapi/support/npmac.cpp
@@ -456,10 +456,8 @@ NPError    Private_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16
 
         NPBool supportsInvalidatingCoreAnimation = FALSE;
         err = NPN_GetValue(instance, NPNVsupportsInvalidatingCoreAnimationBool, &supportsInvalidatingCoreAnimation);
-        if (err != NPERR_NO_ERROR || !supportsInvalidatingCoreAnimation) {
+        if (err != NPERR_NO_ERROR || !supportsInvalidatingCoreAnimation)
             PLUGINDEBUGSTR("\pNew: browser doesn't support the Invalidating CoreAnimation drawing model;g;");
-            return NPERR_INCOMPATIBLE_VERSION_ERROR;
-        }
 
         if (supportsInvalidatingCoreAnimation) {
             err = NPN_SetValue(instance, NPPVpluginDrawingModel, (void*)NPDrawingModelInvalidatingCoreAnimation);



More information about the vlc-commits mailing list