mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
tests:integration: Fix a race about get_position being called before AYNC_DONE happens
This commit is contained in:
parent
df93acc581
commit
922ce357ba
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue