aggregator: refactor flushing logic
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 22 May 2019 19:37:43 +0000 (21:37 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Mon, 10 Jun 2019 21:04:31 +0000 (23:04 +0200)
commit25383eaa5c714bc16b3bce079b42daae908eb74d
tree08451f2f3472ea033a7bd5a08f324f0187bbd6b1
parent7cc933dec7b8f775c600a4a8e4013ac37e9bb973
aggregator: refactor flushing logic

Instead of tracking "pending_flush_*" on the pads and the
aggregator, we now simply track the last seqnum for flush start
and flush stop events on the pads, and use it to determine whether
we should enter or exit our flushing state.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/977
libs/gst/base/gstaggregator.c
tests/check/libs/aggregator.c