diff options
author | Hyunjun Ko <zzoon.ko@samsung.com> | 2015-11-09 16:08:30 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-12-01 10:28:39 +0200 |
commit | 0fd6b5d3316c85462e8ca160b65b980a3af12e86 (patch) | |
tree | bba9f3a94b05813e242e5659381526d0239434ba /tests | |
parent | d8b1efe13ab2d366290573f4cecbd0852a2721c5 (diff) | |
download | gstreamer-plugins-bad-0fd6b5d3316c85462e8ca160b65b980a3af12e86.tar.gz |
tests:aggregator: fix tc failure and correct check value
Failure by this commit 2dfa548f3645844082c3db65d96d87255701b3ad, which is
to append hooks instead of prepend.
Because of this change, aggretated_cb is not called and leads to failure.
And correct to check flush stop value instead of flush start value
https://bugzilla.gnome.org/show_bug.cgi?id=757801
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/libs/aggregator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/check/libs/aggregator.c b/tests/check/libs/aggregator.c index b21c7cd19..16355b960 100644 --- a/tests/check/libs/aggregator.c +++ b/tests/check/libs/aggregator.c @@ -344,7 +344,7 @@ downstream_probe_cb (GstPad * pad, GstPadProbeInfo * info, TestData * test) g_atomic_int_inc (&test->flush_stop_events); } - return GST_PAD_PROBE_DROP; + return GST_PAD_PROBE_HANDLED; } /* @@ -723,6 +723,7 @@ GST_START_TEST (test_flushing_seek) gst_segment_init (&GST_AGGREGATOR (test.aggregator)->segment, GST_FORMAT_TIME); + /* now do a successful flushing seek */ event = gst_event_new_seek (1, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, 10 * GST_SECOND); @@ -765,7 +766,7 @@ GST_START_TEST (test_flushing_seek) gst_pad_push_event (data2.srcpad, gst_event_new_flush_stop (TRUE)); /* and the last FLUSH_STOP is forwarded downstream */ - fail_unless_equals_int (test.flush_start_events, 1); + fail_unless_equals_int (test.flush_stop_events, 1); /* Check collected */ gst_pad_add_probe (test.srcpad, GST_PAD_PROBE_TYPE_BUFFER, |