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)
commit660ddd40c29cdffcfcbe8bcd448ba3817bdc7cf7
tree8d75be9160bfc8019ac33aa63f94592a8ea524e8
parent0955a39a3d7bd1b7e57073c58ef481ee6392347e
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