mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
906f4c4360
commit
7203c4751c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue