[vlc-commits] logger: cascade if/else for different modes

Rafaël Carré git at videolan.org
Wed Jan 25 07:48:28 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Jan 25 01:38:32 2012 -0500| [2e86bc8f278a18d7be6d0d2d8a00505ed24efba1] | committer: Rafaël Carré

logger: cascade if/else for different modes

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

 modules/misc/logger.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index ebcfe26..ad0fcc5 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -257,7 +257,11 @@ static int Open( vlc_object_t *p_this )
     else
 #endif
 #ifdef __ANDROID__
-    if( cb != AndroidPrint )
+    if( cb == AndroidPrint )
+    {
+        /* nothing to do */
+    }
+    else
 #endif
     {
         char *psz_file = var_InheritString( p_intf, "logfile" );



More information about the vlc-commits mailing list