qtdemux_dump: Bypass even more code if debugging is disabled
authorEdward Hervey <bilboed@bilboed.com>
Wed, 21 Jan 2015 16:36:26 +0000 (17:36 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 21 Jan 2015 16:36:26 +0000 (17:36 +0100)
And avoid using variables that won't exist when debugging is disabled

gst/isomp4/qtdemux_dump.c

index bebbfe1..a73812e 100644 (file)
@@ -889,11 +889,13 @@ qtdemux_node_dump_foreach (GNode * node, gpointer qtdemux)
 gboolean
 qtdemux_node_dump (GstQTDemux * qtdemux, GNode * node)
 {
+#ifndef GST_DISABLE_GST_DEBUG
   /* Only traverse/dump if we know it will be outputted in the end */
   if (qtdemux_debug->threshold < GST_LEVEL_LOG)
     return TRUE;
 
   g_node_traverse (node, G_PRE_ORDER, G_TRAVERSE_ALL, -1,
       qtdemux_node_dump_foreach, qtdemux);
+#endif
   return TRUE;
 }