Also, let the possibility to run vlc -H.
Pointed-out-by RĂ©mi Denis-Courmont <remi@remlab.net>.
module_list_free( list );
msg_Dbg( p_libvlc, "module bank initialized (%zu modules)", module_count );
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 = var_CreateGetNonEmptyString( p_libvlc, "module" )) )
{
/* Check for help on modules */
if( (p_tmp = var_CreateGetNonEmptyString( p_libvlc, "module" )) )
{
+ 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.");
+ b_exit = true;
+ i_ret = VLC_ENOITEM;
+ }
+
if( b_exit )
{
module_EndBank( p_libvlc, true );
if( b_exit )
{
module_EndBank( p_libvlc, true );