From 1afeef0e8b7da5be7d73bb1a67b134048fec8a10 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 12505dd1ca..32a0ec8b48 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -3057,6 +3057,9 @@ reconfigure_output_stream (DecodebinOutputStream * output, ret = FALSE; goto cleanup; } + + output->linked = TRUE; + if (output->src_exposed == FALSE) { GstEvent *stream_start;