[vlc-commits] d3d11_swapchain: only select an RGB output when we favor RGB output

Steve Lhomme git at videolan.org
Tue Dec 17 08:27:00 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Dec 16 11:15:03 2019 +0100| [9f59bf9e866e2c8c3f9b3e1cb0a995531445d016] | committer: Steve Lhomme

d3d11_swapchain: only select an RGB output when we favor RGB output

Then we can fallback to YUV.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f59bf9e866e2c8c3f9b3e1cb0a995531445d016
---

 modules/video_output/win32/d3d11_swapchain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/d3d11_swapchain.c b/modules/video_output/win32/d3d11_swapchain.c
index 4db4969f39..b74d378497 100644
--- a/modules/video_output/win32/d3d11_swapchain.c
+++ b/modules/video_output/win32/d3d11_swapchain.c
@@ -373,7 +373,7 @@ static bool UpdateSwapchain( struct d3d11_local_swapchain *display, const libvlc
                                       0, 0,
                                       false, D3D11_FORMAT_SUPPORT_DISPLAY );
     if (unlikely(newPixelFormat == NULL))
-        newPixelFormat = FindD3D11Format( display->obj, &display->d3d_dev, 0, D3D11_YUV_FORMAT|D3D11_YUV_FORMAT,
+        newPixelFormat = FindD3D11Format( display->obj, &display->d3d_dev, 0, D3D11_YUV_FORMAT,
                                           cfg->bitdepth > 8 ? 10 : 8,
                                           0, 0,
                                           false, D3D11_FORMAT_SUPPORT_DISPLAY );



More information about the vlc-commits mailing list