[vlc-commits] ASF: do not display GUID when not in debug mode

Jean-Baptiste Kempf git at videolan.org
Sun Apr 29 16:13:15 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Apr 28 13:27:34 2012 +0200| [5b91ae5bfba5a8f33daa2b92d58d8ddbfde28450] | committer: Jean-Baptiste Kempf

ASF: do not display GUID when not in debug mode

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

 modules/demux/asf/libasf.c |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index d3a0f1b..6240b14 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -1445,10 +1445,18 @@ static void ASF_ObjectDumpDebug( vlc_object_t *p_obj,
         str[i * 4] = '|';
     }
     snprintf( &str[4*i_level], sizeof(str) - 5*i_level,
-             "+ '%s' GUID "GUID_FMT" size:%"PRIu64" pos:%"PRIu64,
-             psz_name,
-             GUID_PRINT( p_node->i_object_id ),
-             p_node->i_object_size, p_node->i_object_pos );
+             "+ '%s'"
+#ifdef ASF_DEBUG
+             "GUID "GUID_FMT" size:%"PRIu64" pos:%"PRIu64
+#endif
+             , psz_name
+
+#ifdef ASF_DEBUG
+             , GUID_PRINT( p_node->i_object_id ),
+             p_node->i_object_size, p_node->i_object_pos
+#endif
+             );
+
 
     msg_Dbg( p_obj, "%s", str );
 



More information about the vlc-commits mailing list