[vlc-devel] commit: mozilla: really fix compilation (and check the return code). ( Rémi Duraffort )

git version control git at videolan.org
Mon Feb 1 13:21:21 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Feb  1 13:20:49 2010 +0100| [03997fa14c3d0814187469d97c21198b1da66ef9] | committer: Rémi Duraffort 

mozilla: really fix compilation (and check the return code).

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

 projects/mozilla/vlcplugin.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 0ea739c..f6b8832 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);
 
     /*




More information about the vlc-devel mailing list