[vlc-devel] commit: libvlc: Make sure we don' t continue vlc exectution if no modules where found. (Pierre d'Herbemont )

git version control git at videolan.org
Thu Dec 10 02:03:06 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Dec  9 16:47:31 2009 +0100| [067be17f09f44fecfa7d84eff042ff238a095654] | committer: Pierre d'Herbemont 

libvlc: Make sure we don't continue vlc exectution if no modules where found.

This is done to better diagnosticate misconfiguration of libvlc path.

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

 src/libvlc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 04eaaf9..558595e 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" )) )
     {




More information about the vlc-devel mailing list