[vlc-commits] direct3d9: Don't silently disable hardware chroma conversion

Hugo Beauzée-Luyssen git at videolan.org
Tue May 16 17:41:31 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 15 18:43:56 2017 +0200| [87fac5d63858da3f2d49ee6aaa18db6c63f1f0a5] | committer: Hugo Beauzée-Luyssen

direct3d9: Don't silently disable hardware chroma conversion

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

 modules/video_output/win32/direct3d9.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 0ae253e604..2c8655e77a 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1089,6 +1089,8 @@ static const d3d_format_t *Direct3DFindFormat(vout_display_t *vd, vlc_fourcc_t c
 {
     vout_display_sys_t *sys = vd->sys;
     bool hardware_scale_ok = !(vd->fmt.i_visible_width & 1) && !(vd->fmt.i_visible_height & 1);
+    if( !hardware_scale_ok )
+        msg_Warn( vd, "Disabling hardware chroma conversion due to odd dimensions" );
 
     for (unsigned pass = 0; pass < 2; pass++) {
         const vlc_fourcc_t *list;



More information about the vlc-commits mailing list