[vlc-commits] libvlc: do not exit early without modules

Rémi Denis-Courmont git at videolan.org
Sun Mar 11 01:09:41 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 10 22:15:36 2018 +0200| [6d8f2d6fa37843a12ee9264740194702504b9d20] | committer: Rémi Denis-Courmont

libvlc: do not exit early without modules

Let the vlc binary instantiate LibVLC correctly. It will fail to initialize the
interface and handle the error commonly there.

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

 src/libvlc.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index c9e594a0d9..8907df645e 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -141,7 +141,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
      * We have to do it before config_Load*() because this also gets the
      * list of configuration options exported by each module and loads their
      * default values. */
-    size_t module_count = module_LoadPlugins (p_libvlc);
+    module_LoadPlugins (p_libvlc);
 
     /*
      * Override default configuration with config file settings
@@ -179,13 +179,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         exit(0);
     }
 
-    if( module_count <= 1 )
-    {
-        msg_Err( p_libvlc, "No plugins found! Check your VLC installation.");
-        i_ret = VLC_ENOMOD;
-        goto error;
-    }
-
 #ifdef HAVE_DAEMON
     /* Check for daemon mode */
     if( var_InheritBool( p_libvlc, "daemon" ) )



More information about the vlc-commits mailing list