mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +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_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_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),
|
||||
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
|
||||
* the 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;
|
||||
/* increment state cookie so that we can track each state change. We only do
|
||||
* 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 (event != NULL, FALSE);
|
||||
|
||||
GST_LOG_OBJECT (pad, "default event handler");
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_EOS:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue