playbin3: Configure combiner on pad-added if needed
authorSeungha Yang <seungha@centricular.com>
Tue, 24 May 2022 17:10:30 +0000 (02:10 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 25 May 2022 13:50:17 +0000 (13:50 +0000)
commitb91093a2e66c765567a53362a2565f0d7d6cb0d3
tree5698e7e0ca77cf2b8a93b843920da7082831061b
parent5490189b9b4dd0ece075ee6fb4785bf90c2dd67a
playbin3: Configure combiner on pad-added if needed

When collection is updated, decodebin3 exposes pad first and then
streams-selected message is posted.
The condition can cause a situation where playbin3 links non-existing
combiner/playsink pads (since streams-selected is not posted yet) with
new decodebin output pad. This commit will re-check selected/active
streams condition on pad-added and reconfigure output if needed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2482>
subprojects/gst-plugins-base/gst/playback/gstplaybin3.c