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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/899>
This commit is contained in:
Thibault Saunier 2023-04-18 18:13:54 -04:00 committed by GStreamer Marge Bot
parent e41e31f2ae
commit aa7c49ded8

View file

@ -781,8 +781,10 @@ gst_base_auto_convert_sink_setcaps (GstBaseAutoConvert * self, GstCaps * caps,
if (!check_downstream) { if (!check_downstream) {
current_caps = gst_pad_get_current_caps (self->sinkpad); 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; goto get_out;
}
} }
if (check_downstream) if (check_downstream)