Commit 11c1769c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc: look "syslog" value only once, simplify

parent bc1fa152
......@@ -454,14 +454,6 @@ dbus_out:
free( psz_modules );
free( psz_control );
if( var_InheritBool( p_libvlc, "file-logging" )
#ifdef HAVE_SYSLOG_H
&& !var_InheritBool( p_libvlc, "syslog" )
#endif
)
{
intf_Create( p_libvlc, "logger,none" );
}
#ifdef HAVE_SYSLOG_H
if( var_InheritBool( p_libvlc, "syslog" ) )
{
......@@ -476,7 +468,10 @@ dbus_out:
}
var_Destroy( p_libvlc, "logmode" );
}
else
#endif
if( var_InheritBool( p_libvlc, "file-logging" ) )
intf_Create( p_libvlc, "logger,none" );
if( var_InheritBool( p_libvlc, "network-synchronisation") )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment