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:
7350682
)
debugutils: show if an element is state-locked
author
Stefan Sauer
<ensonic@users.sf.net>
Thu, 13 Oct 2011 14:48:02 +0000
(16:48 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Thu, 13 Oct 2011 14:49:01 +0000
(16:49 +0200)
gst/gstdebugutils.c
patch
|
blob
|
history
diff --git
a/gst/gstdebugutils.c
b/gst/gstdebugutils.c
index
a552cc0
..
e292ab9
100644
(file)
--- a/
gst/gstdebugutils.c
+++ b/
gst/gstdebugutils.c
@@
-81,7
+81,9
@@
debug_dump_get_element_state (GstElement * element)
gst_element_get_state (element, &state, &pending, 0);
if (pending == GST_STATE_VOID_PENDING) {
- state_name = g_strdup_printf ("\\n[%c]", state_icons[state]);
+ gboolean is_locked = gst_element_is_locked_state (element);
+ state_name = g_strdup_printf ("\\n[%c]%s", state_icons[state],
+ (is_locked ? "(locked)" : ""));
} else {
state_name = g_strdup_printf ("\\n[%c] -> [%c]", state_icons[state],
state_icons[pending]);