basesrc-test: Fix race testing segment update
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 7 Aug 2015 19:39:59 +0000 (15:39 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 20 Aug 2015 14:49:02 +0000 (07:49 -0700)
commit900110c6dcb1b8f0c2203e1ee586b7c19dbd3eda
treed49d0d57a64fad35f7be6c60edaf3ab8a10cf993
parentef3286e0f5e6611f55a2bf5d37244e58d1e29c59
basesrc-test: Fix race testing segment update

As this test is using a short sleep (GST_USECOND, which is 10ms
in microsecond), sometimes that EOS event is received before the
loop in basesrc have run _do_seek() and pushed the update segment.
To solve this issue, we wait for the initial segment (and flush it)
then we wait for the second segment before sending EOS.

https://bugzilla.gnome.org/show_bug.cgi?id=753365
tests/check/libs/basesrc.c