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/5126>
This commit is contained in:
Philippe Normand 2023-08-01 15:14:29 +01:00 committed by GStreamer Marge Bot
parent 0149d77eff
commit 1afeef0e8b

View file

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