validate-scenario: Fix wrong return value
authorEdward Hervey <edward@centricular.com>
Tue, 18 Jul 2017 13:50:35 +0000 (15:50 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 18 Jul 2017 13:50:35 +0000 (15:50 +0200)
We were always returning ok ...

CID #1415484

validate/gst/validate/gst-validate-scenario.c

index 7fe41e5..f8b9f28 100644 (file)
@@ -836,7 +836,7 @@ _execute_eos (GstValidateScenario * scenario, GstValidateAction * action)
   ret = gst_element_send_event (pipeline, gst_event_new_eos ());
   gst_object_unref (pipeline);
 
-  return ret ? GST_VALIDATE_EXECUTE_ACTION_OK : GST_VALIDATE_EXECUTE_ACTION_OK;
+  return ret ? GST_VALIDATE_EXECUTE_ACTION_OK : GST_VALIDATE_EXECUTE_ACTION_ERROR;
 }
 
 static int