mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
2b37910631
commit
58e451325b
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue