mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +00:00
d3d11compositor: 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/7185>
This commit is contained in:
parent
c5f8587e8d
commit
6d97fcd656
1 changed files with 3 additions and 0 deletions
|
@ -1544,6 +1544,9 @@ gst_d3d11_compositor_calculate_background_color (GstD3D11Compositor * self,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
self->clear_color[2] = self->clear_color[0];
|
||||
self->clear_color[2].color[0][3] = 0.0;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue