mirror of https://code.videolan.org/videolan/vlc
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.
This commit is contained in:
parent
a0fbc944ce
commit
6d8f2d6fa3
|
@ -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" ) )
|
||||
|
|
Loading…
Reference in New Issue