mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 09:21:03 +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
|
gboolean
|
||||||
qtdemux_node_dump (GstQTDemux * qtdemux, GNode * node)
|
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 */
|
/* Only traverse/dump if we know it will be outputted in the end */
|
||||||
if (qtdemux_debug->threshold < GST_LEVEL_LOG)
|
if (qtdemux_debug->threshold < GST_LEVEL_LOG)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
g_node_traverse (node, G_PRE_ORDER, G_TRAVERSE_ALL, -1,
|
g_node_traverse (node, G_PRE_ORDER, G_TRAVERSE_ALL, -1,
|
||||||
qtdemux_node_dump_foreach, qtdemux);
|
qtdemux_node_dump_foreach, qtdemux);
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue