]> git.sesse.net Git - vlc/commitdiff
mozilla: really fix compilation (and check the return code).
authorRémi Duraffort <ivoire@videolan.org>
Mon, 1 Feb 2010 12:20:49 +0000 (13:20 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 1 Feb 2010 12:20:49 +0000 (13:20 +0100)
projects/mozilla/vlcplugin.cpp

index 0ea739c0d86505651c04e1217fb955649546e1c4..f6b88322f89cc992e04e790373c9fea5c67900b1 100644 (file)
@@ -353,6 +353,8 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
     }
 
     libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv);
+    if( !libvlc_instance )
+        return NPERR_GENERIC_ERROR;
     libvlc_media_list = libvlc_media_list_new(libvlc_instance);
 
     /*