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>
This commit is contained in:
Philippe Normand 2023-08-01 15:14:29 +01:00 committed by Tim-Philipp Müller
parent 40311bf665
commit b979ca0dcc

View file

@ -2909,6 +2909,9 @@ reconfigure_output_stream (DecodebinOutputStream * output,
ret = FALSE;
goto cleanup;
}
output->linked = TRUE;
if (output->src_exposed == FALSE) {
GstEvent *stream_start;