From 922ce357ba5e0e2f894f36de6cd1eff94fd18f37 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 4 Feb 2014 13:58:48 +0100 Subject: [PATCH] tests:integration: Fix a race about get_position being called before AYNC_DONE happens --- tests/check/ges/integration.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/check/ges/integration.c b/tests/check/ges/integration.c index daffab6bc4..37274f897a 100644 --- a/tests/check/ges/integration.c +++ b/tests/check/ges/integration.c @@ -243,8 +243,10 @@ get_position (void) if ((position >= (seek->seeking_position - seek_tol)) && (position <= (seek->seeking_position + seek_tol))) { - if (!got_async_done) - fail_if (GST_CLOCK_TIME_IS_VALID (seeked_position)); + if (!got_async_done) { + GST_INFO ("Still not received ASYNC_DONE, keep going"); + return TRUE; + } got_async_done = FALSE; GST_INFO ("seeking to: %" GST_TIME_FORMAT,