mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-01 20:30:41 +00:00
libs: check: print stacktrace on unexpected criticals
This commit is contained in:
parent
c5e1dc4ee6
commit
88dfd9ee48
|
@ -274,7 +274,15 @@ static void gst_check_log_critical_func
|
|||
return;
|
||||
|
||||
if (!_gst_check_expecting_log) {
|
||||
gchar *trace;
|
||||
|
||||
g_print ("\n\nUnexpected critical/warning: %s\n", message);
|
||||
|
||||
trace = gst_debug_get_stack_trace (GST_STACK_TRACE_SHOW_FULL);
|
||||
if (trace) {
|
||||
g_print ("\nStack trace:\n%s\n", trace);
|
||||
g_free (trace);
|
||||
}
|
||||
fail ("Unexpected critical/warning: %s", message);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue