GstStateChangeReturn ret = GST_STATE_CHANGE_FAILURE;
GstState old_pending;
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "getting state");
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element, "getting state");
GST_STATE_LOCK (element);
ret = GST_STATE_RETURN (element);
} else {
timeval = NULL;
}
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "wait for pending");
+ GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ "waiting for element to commit state");
/* we have a pending state change, wait for it to complete */
if (!GST_STATE_TIMED_WAIT (element, timeval)) {
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "timeout");
+ GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "timed out");
/* timeout triggered */
ret = GST_STATE_CHANGE_ASYNC;
} else {
/* could be success or failure */
if (old_pending == GST_STATE (element)) {
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "got success");
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element, "got success");
ret = GST_STATE_CHANGE_SUCCESS;
} else {
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "got failure");
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element, "got failure");
ret = GST_STATE_CHANGE_FAILURE;
}
}
}
/* if nothing is pending anymore we can return SUCCESS */
if (GST_STATE_PENDING (element) == GST_STATE_VOID_PENDING) {
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "nothing pending");
+ GST_CAT_LOG_OBJECT (GST_CAT_STATES, element, "nothing pending");
ret = GST_STATE_CHANGE_SUCCESS;
}
if (pending)
*pending = GST_STATE_PENDING (element);
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"state current: %s, pending: %s, result: %d",
gst_element_state_get_name (GST_STATE (element)),
gst_element_state_get_name (GST_STATE_PENDING (element)), ret);
GST_STATE_RETURN (element) = ret;
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"committing state from %s to %s, pending %s",
gst_element_state_get_name (old_state),
gst_element_state_get_name (next),
/* calc new next state */
next = GST_STATE_GET_NEXT (current, pending);
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"continue state change %s to %s, final %s",
gst_element_state_get_name (current),
gst_element_state_get_name (next),
current_state = GST_STATE (element);
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"lost state of %s", gst_element_state_get_name (current_state));
GST_STATE_NEXT (element) = current_state;
gst_element_abort_state (element);
break;
case GST_STATE_CHANGE_ASYNC:
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"element will change state ASYNC");
/* if we go upwards, we give the app a change to wait for
ret = gst_element_commit_state (element);
break;
case GST_STATE_CHANGE_SUCCESS:
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"element changed state SUCCESS");
/* we can commit the state now which will proceeed to
* the next state */
ret = gst_element_commit_state (element);
break;
case GST_STATE_CHANGE_NO_PREROLL:
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element,
+ GST_CAT_DEBUG_OBJECT (GST_CAT_STATES, element,
"element changed state NO_PREROLL");
/* we can commit the state now which will proceeed to
* the next state */
exit:
GST_STATE_RETURN (element) = ret;
- GST_CAT_INFO_OBJECT (GST_CAT_STATES, element, "exit state change %d", ret);
+ GST_CAT_LOG_OBJECT (GST_CAT_STATES, element, "exit state change %d", ret);
return ret;
{
GstMessage *message = GST_MESSAGE (instance);
- GST_CAT_INFO (GST_CAT_MESSAGE, "new message %p", message);
+ GST_CAT_LOG (GST_CAT_MESSAGE, "new message %p", message);
GST_MESSAGE_TIMESTAMP (message) = GST_CLOCK_TIME_NONE;
}
{
g_return_if_fail (message != NULL);
- GST_CAT_INFO (GST_CAT_MESSAGE, "finalize message %p", message);
+ GST_CAT_LOG (GST_CAT_MESSAGE, "finalize message %p", message);
if (GST_MESSAGE_SRC (message)) {
gst_object_unref (GST_MESSAGE_SRC (message));
{
GstMessage *copy;
- GST_CAT_INFO (GST_CAT_MESSAGE, "copy message %p", message);
+ GST_CAT_LOG (GST_CAT_MESSAGE, "copy message %p", message);
copy = (GstMessage *) gst_mini_object_new (GST_TYPE_MESSAGE);
message = (GstMessage *) gst_mini_object_new (GST_TYPE_MESSAGE);
- GST_CAT_INFO (GST_CAT_MESSAGE, "creating new message %p %s", message,
+ GST_CAT_LOG (GST_CAT_MESSAGE, "creating new message %p %s", message,
gst_message_type_get_name (type));
message->type = type;