d3d12compositor: Fix transparent background mode with YUV output

In case of YUV format without alpha channel, zero clear value
for each channle will result in green color. Use calculated black
background color with alpha=0 for transparent background mode instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7181>
This commit is contained in:
Seungha Yang 2024-07-16 23:07:50 +09:00 committed by GStreamer Marge Bot
parent 3922ae5d92
commit dbc8a1397d

View file

@ -1912,6 +1912,9 @@ gst_d3d12_compositor_calculate_background_color (GstD3D12Compositor * self,
} }
} }
} }
priv->clear_color[2] = priv->clear_color[0];
priv->clear_color[2].color[0][3] = 0.0;
} }
static gboolean static gboolean