mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
debug: add some more debug to element and pads
This commit is contained in:
parent
18a34288cf
commit
309d78770c
2 changed files with 6 additions and 2 deletions
|
@ -2199,10 +2199,10 @@ gst_element_continue_state (GstElement * element, GstStateChangeReturn ret)
|
||||||
GST_OBJECT_UNLOCK (element);
|
GST_OBJECT_UNLOCK (element);
|
||||||
|
|
||||||
GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
|
GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
|
||||||
"committing state from %s to %s, pending %s",
|
"committing state from %s to %s, pending %s, next %s",
|
||||||
gst_element_state_get_name (old_state),
|
gst_element_state_get_name (old_state),
|
||||||
gst_element_state_get_name (old_next),
|
gst_element_state_get_name (old_next),
|
||||||
gst_element_state_get_name (pending));
|
gst_element_state_get_name (pending), gst_element_state_get_name (next));
|
||||||
|
|
||||||
message = gst_message_new_state_changed (GST_OBJECT_CAST (element),
|
message = gst_message_new_state_changed (GST_OBJECT_CAST (element),
|
||||||
old_state, old_next, pending);
|
old_state, old_next, pending);
|
||||||
|
@ -2440,6 +2440,8 @@ gst_element_set_state_func (GstElement * element, GstState state)
|
||||||
/* this is the (new) state we should go to. TARGET is the last state we set on
|
/* this is the (new) state we should go to. TARGET is the last state we set on
|
||||||
* the element. */
|
* the element. */
|
||||||
if (state != GST_STATE_TARGET (element)) {
|
if (state != GST_STATE_TARGET (element)) {
|
||||||
|
GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
|
||||||
|
"setting target state to %s", gst_element_state_get_name (state));
|
||||||
GST_STATE_TARGET (element) = state;
|
GST_STATE_TARGET (element) = state;
|
||||||
/* increment state cookie so that we can track each state change. We only do
|
/* increment state cookie so that we can track each state change. We only do
|
||||||
* this if this is actually a new state change. */
|
* this if this is actually a new state change. */
|
||||||
|
|
|
@ -3444,6 +3444,8 @@ gst_pad_event_default (GstPad * pad, GstEvent * event)
|
||||||
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
|
||||||
g_return_val_if_fail (event != NULL, FALSE);
|
g_return_val_if_fail (event != NULL, FALSE);
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (pad, "default event handler");
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue