mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
validate: Print state changes to help debugging
This commit is contained in:
parent
1dd93bea2a
commit
80702884f0
1 changed files with 14 additions and 0 deletions
|
@ -73,6 +73,20 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
}
|
}
|
||||||
case GST_MESSAGE_EOS:
|
case GST_MESSAGE_EOS:
|
||||||
g_main_loop_quit (loop);
|
g_main_loop_quit (loop);
|
||||||
|
break;
|
||||||
|
case GST_MESSAGE_STATE_CHANGED:
|
||||||
|
if (GST_MESSAGE_SRC (message) == GST_OBJECT (pipeline)) {
|
||||||
|
GstState oldstate, newstate, pending;
|
||||||
|
|
||||||
|
gst_message_parse_state_changed (message, &oldstate, &newstate,
|
||||||
|
&pending);
|
||||||
|
|
||||||
|
GST_DEBUG ("State changed (old: %s, new: %s, pending: %s)",
|
||||||
|
gst_element_state_get_name (oldstate),
|
||||||
|
gst_element_state_get_name (newstate),
|
||||||
|
gst_element_state_get_name (pending));
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue