From: RĂ©mi Duraffort Date: Mon, 1 Feb 2010 12:20:49 +0000 (+0100) Subject: mozilla: really fix compilation (and check the return code). X-Git-Tag: 1.1.0-ff~574 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=03997fa14c3d0814187469d97c21198b1da66ef9;p=vlc mozilla: really fix compilation (and check the return code). --- diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index 0ea739c0d8..f6b88322f8 100644 --- a/projects/mozilla/vlcplugin.cpp +++ b/projects/mozilla/vlcplugin.cpp @@ -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); /*