tests:integration: Fix a race about get_position being called before AYNC_DONE happens
authorThibault Saunier <thibault.saunier@collabora.com>
Tue, 4 Feb 2014 12:58:48 +0000 (13:58 +0100)
committerThibault Saunier <thibault.saunier@collabora.com>
Tue, 4 Feb 2014 13:17:50 +0000 (14:17 +0100)
tests/check/ges/integration.c

index daffab6..37274f8 100644 (file)
@@ -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,