diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-06-14 23:53:22 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-06-15 10:27:28 -0300 |
commit | 6ea08458b441fb3645617da334e94619e207dcdd (patch) | |
tree | cd752fb112e93c8fb07c3cbb15d2bc0d378a686d | |
parent | 68cb4831353d05939a1e4cd4223f80ba88b22e21 (diff) |
insanitygstpipelinetest: Validate checklist item "no-errors-seen" on stop instead of teardown.
This is required as the stats of a test are retrieved on each stop call.
-rw-r--r-- | lib/insanity-gst/insanitygstpipelinetest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/insanity-gst/insanitygstpipelinetest.c b/lib/insanity-gst/insanitygstpipelinetest.c index e4908ec..120eb2d 100644 --- a/lib/insanity-gst/insanitygstpipelinetest.c +++ b/lib/insanity-gst/insanitygstpipelinetest.c @@ -541,6 +541,9 @@ insanity_gst_pipeline_test_stop (InsanityTest * test) INSANITY_GST_PIPELINE_TEST (test)->priv; GstState state, pending; + insanity_test_validate_checklist_item (test, "no-errors-seen", + priv->error_count == 0, NULL); + if (priv->wait_timeout_id) { g_source_remove (priv->wait_timeout_id); priv->wait_timeout_id = 0; @@ -584,9 +587,6 @@ insanity_gst_pipeline_test_teardown (InsanityTest * test) InsanityGstPipelineTest *ptest = INSANITY_GST_PIPELINE_TEST (test); InsanityGstPipelineTestPrivateData *priv = ptest->priv; - insanity_test_validate_checklist_item (test, "no-errors-seen", - priv->error_count == 0, NULL); - if (priv->bus) { gst_object_unref (priv->bus); priv->bus = NULL; |