summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-03-18 18:12:16 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-03-18 18:12:16 +0100
commit888cf0656df72e8d8e13a0e7fa50474eb2107c05 (patch)
tree703d3248f8680657a35bdf64aef70fb73f6bd840 /tests
parentba943a82c0bbfd17c9ee9f5068d44c9d9274fd13 (diff)
downloadgstreamer-888cf0656df72e8d8e13a0e7fa50474eb2107c05.tar.gz
fakesink: Update positions we're checking for after a state is lost
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/fakesink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check/elements/fakesink.c b/tests/check/elements/fakesink.c
index 639905c476..de932e7aba 100644
--- a/tests/check/elements/fakesink.c
+++ b/tests/check/elements/fakesink.c
@@ -794,10 +794,10 @@ GST_START_TEST (test_position)
fail_if (eret == FALSE);
}
- /* this should now just report the stream time of the last buffer */
+ /* this should now just report the last stream time */
qret = gst_element_query_position (sink, GST_FORMAT_TIME, &qcur);
fail_unless (qret == TRUE);
- fail_unless (qcur == 2 * GST_SECOND);
+ fail_unless (qcur >= 2 * GST_SECOND && qcur <= 3 * GST_SECOND);
{
GST_DEBUG ("sending flush_stop");
@@ -869,7 +869,7 @@ GST_START_TEST (test_position)
* record of that anywhere */
qret = gst_element_query_position (sink, GST_FORMAT_TIME, &qcur);
fail_unless (qret == TRUE);
- fail_unless (qcur >= 4 * GST_SECOND);
+ fail_unless (qcur == 3 * GST_SECOND);
ret = gst_element_set_state (pipeline, GST_STATE_READY);
fail_unless (ret == GST_STATE_CHANGE_SUCCESS);