int vlc_optind;
if( config_LoadCmdLine( p_libvlc, i_argc, ppsz_argv, &vlc_optind ) )
{
- module_EndBank (true);
vlc_LogDeinit (p_libvlc);
+ module_EndBank (true);
return VLC_EGENERIC;
}
if( module_count <= 1 )
{
msg_Err( p_libvlc, "No plugins found! Check your VLC installation.");
- module_EndBank (true);
vlc_LogDeinit (p_libvlc);
+ module_EndBank (true);
return VLC_ENOMOD;
}
if( daemon( 1, 0) != 0 )
{
msg_Err( p_libvlc, "Unable to fork vlc to daemon mode" );
- module_EndBank (true);
vlc_LogDeinit (p_libvlc);
+ module_EndBank (true);
return VLC_ENOMEM;
}
free( psz_modules );
free( psz_control );
-#ifdef HAVE_SYSLOG_H
- if( var_InheritBool( p_libvlc, "syslog" ) )
- {
- char *logmode = var_CreateGetNonEmptyString( p_libvlc, "logmode" );
- var_SetString( p_libvlc, "logmode", "syslog" );
- libvlc_InternalAddIntf( p_libvlc, "logger,none" );
-
- if( logmode )
- {
- var_SetString( p_libvlc, "logmode", logmode );
- free( logmode );
- }
- var_Destroy( p_libvlc, "logmode" );
- }
- else
-#endif
- if( var_InheritBool( p_libvlc, "file-logging" ) )
- libvlc_InternalAddIntf( p_libvlc, "logger,none" );
-
if( var_InheritBool( p_libvlc, "network-synchronisation") )
libvlc_InternalAddIntf( p_libvlc, "netsync,none" );
config_AutoSaveConfigFile( VLC_OBJECT(p_libvlc) );
/* Free module bank. It is refcounted, so we call this each time */
- module_EndBank (true);
vlc_LogDeinit (p_libvlc);
+ module_EndBank (true);
#if defined(_WIN32) || defined(__OS2__)
system_End( );
#endif