cccombiner: implement samples selection API
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 1 Jul 2020 01:59:56 +0000 (03:59 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 30 Jul 2020 23:10:33 +0000 (23:10 +0000)
commit265128e7f7a24a9d4ecd07f4db10c2eb8b3eecc3
tree8ec452ed16ab6fea32f96c7c0eaa1a7432e81943
parent480ede1aa772500867bf8c51a8e2ad7fd5fc0a08
cccombiner: implement samples selection API

Call gst_aggregator_selected_samples() after identifying the
caption buffers that will be added as a meta on the next video
buffer.

Implement GstAggregator.peek_next_sample.

Add an example that demonstrates usage of the new API in
combination with the existing buffer-consumed signal.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1390>
ext/closedcaption/gstcccombiner.c
tests/check/elements/cccombiner.c