mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
- don't be rude but give informative message about what went wrong.
Original commit message from CVS: - don't be rude but give informative message about what went wrong.
This commit is contained in:
parent
354e85056f
commit
fff499ea25
1 changed files with 9 additions and 1 deletions
|
@ -2262,7 +2262,15 @@ gst_element_set_state (GstElement *element, GstElementState state)
|
||||||
/* Last thing we do is verify that a successful state change really
|
/* Last thing we do is verify that a successful state change really
|
||||||
* did change the state... */
|
* did change the state... */
|
||||||
/* if it did not, this is an error - fix the element that does this */
|
/* if it did not, this is an error - fix the element that does this */
|
||||||
g_assert (GST_STATE (element) == curpending);
|
if (GST_STATE (element) != curpending) {
|
||||||
|
g_warning ("element %s claimed state-change success,"
|
||||||
|
"but state didn't change %s, %s <-> %s, fix the element",
|
||||||
|
GST_ELEMENT_NAME (element),
|
||||||
|
gst_element_state_get_name (GST_STATE (element)),
|
||||||
|
gst_element_state_get_name (GST_STATE_PENDING (element)),
|
||||||
|
gst_element_state_get_name (curpending));
|
||||||
|
return GST_STATE_FAILURE;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* somebody added a GST_STATE_ and forgot to do stuff here ! */
|
/* somebody added a GST_STATE_ and forgot to do stuff here ! */
|
||||||
|
|
Loading…
Reference in a new issue