[vlc-commits] libvlc: look "syslog" value only once, simplify

Rémi Denis-Courmont git at videolan.org
Wed Jan 1 19:51:44 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jan  1 18:55:49 2014 +0200| [11c1769c986a690a75e8fe5df11e293f5f52e206] | committer: Rémi Denis-Courmont

libvlc: look "syslog" value only once, simplify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11c1769c986a690a75e8fe5df11e293f5f52e206
---

 src/libvlc.c |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 933941e..7dbda91 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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") )
     {



More information about the vlc-commits mailing list