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)
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

index 804f017241a7a9850ccf414ab98c0a5cee523509..017fa2293efeb03da2767646a83edec71e91d35f 100644 (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;