qtdemux_dump: Bypass even more code if debugging is disabled

And avoid using variables that won't exist when debugging is disabled
This commit is contained in:
Edward Hervey 2015-01-21 17:36:26 +01:00
parent 906f4c4360
commit 7203c4751c

View 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;
}