mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
debugutils: show if an element is state-locked
This commit is contained in:
parent
735068218e
commit
32b90e667d
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue