From: Pierre d'Herbemont Date: Wed, 9 Dec 2009 15:47:31 +0000 (+0100) Subject: libvlc: Make sure we don't continue vlc exectution if no modules where found. X-Git-Tag: 1.1.0-ff~2051 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=067be17f09f44fecfa7d84eff042ff238a095654;p=vlc libvlc: Make sure we don't continue vlc exectution if no modules where found. This is done to better diagnosticate misconfiguration of libvlc path. --- diff --git a/src/libvlc.c b/src/libvlc.c index 04eaaf952c..558595e8f0 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -475,6 +475,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, module_list_free( list ); msg_Dbg( p_libvlc, "module bank initialized (%zu modules)", module_count ); + if( module_count <= 1) + { + msg_Err( p_libvlc, "No modules were found, refusing to start. Check " + "that you properly gave a module path with --plugin-path."); + abort(); + } /* Check for help on modules */ if( (p_tmp = config_GetPsz( p_libvlc, "module" )) ) {