make that error message more useful, it kept confusing me

Original commit message from CVS:
make that error message more useful, it kept confusing me
This commit is contained in:
Benjamin Otte 2003-04-21 18:34:20 +00:00
parent 7f5dc1299b
commit fb14f53284

View file

@ -2264,11 +2264,11 @@ gst_element_set_state (GstElement *element, GstElementState state)
/* if it did not, this is an error - fix the element that does this */
if (GST_STATE (element) != curpending) {
g_warning ("element %s claimed state-change success,"
"but state didn't change %s, %s <-> %s, fix the element",
"but state didn't change to %s. State is %s (%s pending), fix the element",
GST_ELEMENT_NAME (element),
gst_element_state_get_name (curpending),
gst_element_state_get_name (GST_STATE (element)),
gst_element_state_get_name (GST_STATE_PENDING (element)),
gst_element_state_get_name (curpending));
gst_element_state_get_name (GST_STATE_PENDING (element)));
return GST_STATE_FAILURE;
}
break;