validate:scenario: Simplify the way we override appsrc src pad chain
authorThibault Saunier <tsaunier@igalia.com>
Wed, 14 Sep 2022 18:31:20 +0000 (15:31 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 20 Sep 2022 17:14:36 +0000 (17:14 +0000)
commitd2b4e7a38e0a0b143eced4da6acec609df2fd673
treeb7f65f31a1edf0ade172108ecd3743c223006b68
parentfdfa70997b162c9bafe4aecb0ebd2456b1c67320
validate:scenario: Simplify the way we override appsrc src pad chain

When pushing several buffers while the pipeline is in NULL state, meaning
that the action are executed "interlaced", previous code was deadlocking.

This new implementation makes it so the override is always on and we
expect all buffers to go through to be associated to a function, which
is a safe assumption.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3052>
subprojects/gst-devtools/validate/gst/validate/gst-validate-scenario.c