projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5e1dc4
)
libs: check: print stacktrace on unexpected criticals
author
Tim-Philipp Müller
<tim@centricular.com>
Thu, 11 Jan 2018 12:27:18 +0000
(12:27 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 11 Jan 2018 12:27:18 +0000
(12:27 +0000)
libs/gst/check/gstcheck.c
patch
|
blob
|
history
diff --git
a/libs/gst/check/gstcheck.c
b/libs/gst/check/gstcheck.c
index
86a023b
..
963d0c4
100644
(file)
--- a/
libs/gst/check/gstcheck.c
+++ b/
libs/gst/check/gstcheck.c
@@
-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);
}