decodebin3: Ensure the slot is unlinked before linking to decoder
authorPhilippe Normand <philn@igalia.com>
Tue, 1 Aug 2023 14:14:29 +0000 (15:14 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 1 Aug 2023 22:50:34 +0000 (23:50 +0100)
commitb979ca0dcc0438257891fb000b71c2113489f33d
treed5327edc3ecb6441e8412a25b0ba410268052d4f
parent40311bf6651f5ff375580048b0f91cb8fab85be4
decodebin3: Ensure the slot is unlinked before linking to decoder

When switching from a raw stream to an encoded stream we need to make sure the
slot is unlinked, there is code in place for this but it wasn't triggered
because the slot being reconfigured wasn't advertised as linked beforehand.

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