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: ...@@ -454,14 +454,6 @@ dbus_out:
free( psz_modules ); free( psz_modules );
free( psz_control ); 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 #ifdef HAVE_SYSLOG_H
if( var_InheritBool( p_libvlc, "syslog" ) ) if( var_InheritBool( p_libvlc, "syslog" ) )
{ {
...@@ -476,7 +468,10 @@ dbus_out: ...@@ -476,7 +468,10 @@ dbus_out:
} }
var_Destroy( p_libvlc, "logmode" ); var_Destroy( p_libvlc, "logmode" );
} }
else
#endif #endif
if( var_InheritBool( p_libvlc, "file-logging" ) )
intf_Create( p_libvlc, "logger,none" );
if( var_InheritBool( p_libvlc, "network-synchronisation") ) 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