[vlc-commits] direct3d11: the device and swapchain only depend on the source chroma
Steve Lhomme
git at videolan.org
Tue Nov 28 12:26:03 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Nov 28 11:19:20 2017 +0100| [99391951cf8951b1b5fec33362f7d218d218ea7d] | committer: Jean-Baptiste Kempf
direct3d11: the device and swapchain only depend on the source chroma
It doesn't matter the actual chroma it will use
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99391951cf8951b1b5fec33362f7d218d218ea7d
---
modules/video_output/win32/direct3d11.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 82c5e4013f..d8e94b766c 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1443,9 +1443,9 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
scd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
scd.SampleDesc.Count = 1;
scd.SampleDesc.Quality = 0;
- scd.Width = fmt->i_visible_width;
- scd.Height = fmt->i_visible_height;
- switch(fmt->i_chroma)
+ scd.Width = vd->source.i_visible_width;
+ scd.Height = vd->source.i_visible_height;
+ switch(vd->source.i_chroma)
{
case VLC_CODEC_D3D11_OPAQUE_10B:
scd.Format = DXGI_FORMAT_R10G10B10A2_UNORM;
@@ -1458,7 +1458,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
scd.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
hr = D3D11_CreateDevice(vd, &sys->hd3d,
- is_d3d11_opaque(fmt->i_chroma),
+ is_d3d11_opaque(vd->source.i_chroma),
&sys->d3d_dev);
if (FAILED(hr)) {
msg_Err(vd, "Could not Create the D3D11 device. (hr=0x%lX)", hr);
More information about the vlc-commits
mailing list