aggregator: Only send events up to CAPS event from gst_aggregator_set_src_caps()
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 May 2022 12:05:43 +0000 (15:05 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 5 May 2022 17:41:58 +0000 (17:41 +0000)
commit90584e29d7397cfa6ffea7207ded677c77eed986
tree0ffd05b8646a4d8b34bae0ad3c36456002ed60bf
parent8ec4452d67a17d8a86b0c12c8d89f9535c8bc6d0
aggregator: Only send events up to CAPS event from gst_aggregator_set_src_caps()

Otherwise setting the srcpad caps based on the sinkpad caps event will
already push a segment event downstream before the upstream segment is
known.

If the upstream segments are just forwarded when the upstream segment
event arrives this would result in two segment events being sent
downstream, of which the first one will usually be simply wrong.

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