From aa7c49ded8a12df3ee066374b89775dde18399c3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 18 Apr 2023 18:13:54 -0400 Subject: [PATCH] autoconvert: Accept new caps when they are exactly equal to previous ones That basically was overlooked as the code was clearly intending to do that Part-of: --- .../gst-plugins-bad/gst/autoconvert/gstbaseautoconvert.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/autoconvert/gstbaseautoconvert.c b/subprojects/gst-plugins-bad/gst/autoconvert/gstbaseautoconvert.c index 33b681738e..4a90f1143a 100644 --- a/subprojects/gst-plugins-bad/gst/autoconvert/gstbaseautoconvert.c +++ b/subprojects/gst-plugins-bad/gst/autoconvert/gstbaseautoconvert.c @@ -781,8 +781,10 @@ gst_base_auto_convert_sink_setcaps (GstBaseAutoConvert * self, GstCaps * caps, if (!check_downstream) { current_caps = gst_pad_get_current_caps (self->sinkpad); - if (current_caps && gst_caps_is_equal_fixed (caps, current_caps)) + if (current_caps && gst_caps_is_equal_fixed (caps, current_caps)) { + res = TRUE; goto get_out; + } } if (check_downstream)