aggregator: Add a streaming lock so to secure flush start action
authorThibault Saunier <tsaunier@gnome.org>
Sat, 2 Aug 2014 16:25:01 +0000 (18:25 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:25 +0000 (15:10 +0000)
commit1efd6b2edd2fa7a64f6cd52a6046b83bf1e3abd4
treef634dc77ca4ebb6ff856783ce63b1076d3a83638
parentd5a3056ef2fa460bcb39fd61a02525a58262d292
aggregator: Add a streaming lock so to secure flush start action

Without a lock that is taken in FLUSH_START we had a rare race where we
end up aggregating a buffer that was before the whole FLUSH_START/STOP
dance. That could lead to very wrong behaviour in subclasses.
libs/gst/base/gstaggregator.c