audiomixer: Make flush start/stop test non-racy
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 22 Jan 2015 00:09:13 +0000 (19:09 -0500)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 29 Jan 2015 09:24:18 +0000 (10:24 +0100)
commitfb6ba27ae51df5a89f56d5aea2145fe310deb375
tree42564bb0bbbebc587c93c83c3617aa7c220b5a66
parentf98e457f99e78d52b436d090fc48e222cad6f792
audiomixer: Make flush start/stop test non-racy

The flush stop could have happened between the source trying
to push the segment event and the buffer, this would cause a warning.
Prevent that by taking the source's stream lock while flushing.

https://bugzilla.gnome.org/show_bug.cgi?id=742684
tests/check/elements/audiomixer.c