d3d11colorconvert: Fix caps leak

GstBaseTransform::fixate_caps() takes ownership of passed
othercaps argument.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2086>
This commit is contained in:
Seungha Yang 2021-03-16 15:58:57 +09:00 committed by GStreamer Marge Bot
parent 2b37910631
commit 58e451325b

View file

@ -2253,6 +2253,7 @@ gst_d3d11_color_convert_fixate_caps (GstBaseTransform * base,
format = gst_d3d11_base_convert_get_fixed_format (base, direction, caps, format = gst_d3d11_base_convert_get_fixed_format (base, direction, caps,
othercaps); othercaps);
gst_caps_unref (othercaps);
if (gst_caps_is_empty (format)) { if (gst_caps_is_empty (format)) {
GST_ERROR_OBJECT (base, "Could not convert formats"); GST_ERROR_OBJECT (base, "Could not convert formats");