mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
e41e31f2ae
commit
aa7c49ded8
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue