From 067be17f09f44fecfa7d84eff042ff238a095654 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 9 Dec 2009 16:47:31 +0100 Subject: [PATCH] libvlc: Make sure we don't continue vlc exectution if no modules where found. This is done to better diagnosticate misconfiguration of libvlc path. --- src/libvlc.c | 6 ++++++ 1 file changed, 6 insertions(+) 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" )) ) { -- 2.39.2