nlecomposition: Don't try dump null stack

Fixes following assertion
Unexpected critical/warning: g_node_traverse: assertion 'root != NULL' failed
This commit is contained in:
Seungha Yang 2019-01-14 12:45:29 +09:00
parent 02cdb8b051
commit 8b3e304f15

View file

@ -2967,6 +2967,9 @@ _dump_stack (NleComposition * comp, GNode * stack)
#ifndef GST_DISABLE_GST_DEBUG
GString *res;
if (!stack)
return;
if (gst_debug_category_get_threshold (nlecomposition_debug) < GST_LEVEL_INFO)
return;