aggregator: expose sample selection API
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 30 Jun 2020 19:10:05 +0000 (21:10 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 31 Jul 2020 06:59:08 +0000 (09:59 +0300)
commitd74efc1aed7006c35dff1932b431873b1f697c87
tree42dfe92a7e145e82cfe2086f145fae8132f2e6d4
parent411d255154960e7f0923b2581e57180412c217f6
aggregator: expose sample selection API

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/771
for context.

This exposes new API that subclasses must call from their
aggregate() implementation to signal that they have selected
the next samples they will aggregate: gst_aggregator_selected_samples()

GstAggregator will emit a new signal there, `samples-selected`,
handlers can then look up samples per pad with the newly-added
gst_aggregator_peek_next_sample.

In addition, a new FIXME is logged when subclasses haven't actually
called `selected_samples` from their aggregate() implementation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/549>
libs/gst/base/gstaggregator.c
libs/gst/base/gstaggregator.h