]> git.sesse.net Git - vlc/commitdiff
libvlc: look "syslog" value only once, simplify
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 1 Jan 2014 16:55:49 +0000 (18:55 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 1 Jan 2014 17:50:10 +0000 (19:50 +0200)
src/libvlc.c

index 933941e25dec0e181eaca23a6e137be153d6a075..7dbda91560aa5656b44b6687b4a9c3d06c7d91e4 100644 (file)
@@ -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") )
     {