[vlc-commits] d3d11_fmt: log when we decide not to use a D3D11 device

Steve Lhomme git at videolan.org
Tue Oct 17 18:28:01 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Oct 17 14:20:10 2017 +0200| [0e9257d17f2795c94836683426320871c8483eae] | committer: Jean-Baptiste Kempf

d3d11_fmt: log when we decide not to use a D3D11 device

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_chroma/d3d11_fmt.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_chroma/d3d11_fmt.h b/modules/video_chroma/d3d11_fmt.h
index 963c54abf0..0939ab4846 100644
--- a/modules/video_chroma/d3d11_fmt.h
+++ b/modules/video_chroma/d3d11_fmt.h
@@ -209,8 +209,10 @@ static inline HRESULT D3D11_CreateDevice(vlc_object_t *obj, HINSTANCE hdecoder_d
                     (void *)*pp_d3ddevice, (void *)*pp_d3dcontext,
                     driverAttempts[driver], i_feature_level);
 #endif
+            /* we can work with legacy levels but only if forced */
             if ( obj->obj.force || i_feature_level >= D3D_FEATURE_LEVEL_11_1 )
                 break;
+            msg_Dbg(obj, "Incompatible feature level %i", i_feature_level);
             ID3D11DeviceContext_Release(*pp_d3dcontext);
             *pp_d3dcontext = NULL;
             ID3D11Device_Release(*pp_d3ddevice);



More information about the vlc-commits mailing list