nlecomposition: Don't try dump null stack
authorSeungha Yang <seungha.yang@navercorp.com>
Mon, 14 Jan 2019 03:45:29 +0000 (12:45 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Thu, 17 Jan 2019 14:21:34 +0000 (23:21 +0900)
Fixes following assertion
Unexpected critical/warning: g_node_traverse: assertion 'root != NULL' failed

plugins/nle/nlecomposition.c

index 75d9151..2f90b43 100644 (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;