From b979ca0dcc0438257891fb000b71c2113489f33d Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Tue, 1 Aug 2023 15:14:29 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c index 804f017241..017fa2293e 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -2909,6 +2909,9 @@ reconfigure_output_stream (DecodebinOutputStream * output, ret = FALSE; goto cleanup; } + + output->linked = TRUE; + if (output->src_exposed == FALSE) { GstEvent *stream_start;