validate:scenario: We are not changing state if the set_state failed.
authorThibault Saunier <tsaunier@gnome.org>
Wed, 18 Jun 2014 11:02:53 +0000 (13:02 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 7 Jul 2014 09:27:34 +0000 (11:27 +0200)
validate/gst/validate/gst-validate-scenario.c

index b7231a0..3eecace 100644 (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);