validate:scenario: We are not changing state if the set_state failed.

This commit is contained in:
Thibault Saunier 2014-06-18 13:02:53 +02:00
parent b3a168ed73
commit 150c5bc6b2

View file

@ -334,6 +334,7 @@ _execute_set_state (GstValidateScenario * scenario, GstValidateAction * action)
ret = gst_element_set_state (scenario->pipeline, state);
if (ret == GST_STATE_CHANGE_FAILURE) {
scenario->priv->changing_state = FALSE;
GST_VALIDATE_REPORT (scenario, STATE_CHANGE_FAILURE,
"Failed to set state to %s", str_state);