From 10099e1e704354ec45a1ea8ae394af07c868c1f3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 May 2013 07:03:40 +0200 Subject: [PATCH] check: fix position unit test --- tests/check/generic/sinks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/check/generic/sinks.c b/tests/check/generic/sinks.c index 372ed9e..2d60611 100644 --- a/tests/check/generic/sinks.c +++ b/tests/check/generic/sinks.c @@ -1121,14 +1121,16 @@ GST_START_TEST (test_async_done) /* join the thread. At this point we know the sink processed the last buffer * and the position should now be 210 seconds; the time of the last buffer we - * pushed */ + * pushed. The element has no clock or base-time so it only reports the + * last seen timestamp of the buffer, it does not know how much of the buffer + * is consumed. */ GST_DEBUG ("joining thread"); g_thread_join (thread); gst_element_query_position (sink, GST_FORMAT_TIME, &position); GST_DEBUG ("last buffer position %" GST_TIME_FORMAT, GST_TIME_ARGS (position)); - fail_unless (position == 310 * GST_SECOND, "position is wrong"); + fail_unless (position == 210 * GST_SECOND, "position is wrong"); gst_object_unref (sinkpad); -- 2.7.4