validate-scenario: Fix wrong return value

We were always returning ok ...

CID #1415484
This commit is contained in:
Edward Hervey 2017-07-18 15:50:35 +02:00 committed by Edward Hervey
parent 3904f2523b
commit 4f1242968e

View 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