[vlc-commits] d3d9_fmt: log the device capabilities

Steve Lhomme git at videolan.org
Thu Feb 15 16:40:01 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Feb 15 11:36:28 2018 +0100| [cc064b05653069ca52ca08ce607e69c0c813ea2b] | committer: Thomas Guillem

d3d9_fmt: log the device capabilities

+ fix warning

Ref #19643

(cherry picked from commit 18188dc0df07b3826695385bbf62c0b55c98fb97)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_chroma/d3d9_fmt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_chroma/d3d9_fmt.c b/modules/video_chroma/d3d9_fmt.c
index 5e78f96668..7ad0d6f8eb 100644
--- a/modules/video_chroma/d3d9_fmt.c
+++ b/modules/video_chroma/d3d9_fmt.c
@@ -67,6 +67,7 @@ HRESULT D3D9_CreateDevice(vlc_object_t *o, d3d9_handle_t *hd3d, HWND hwnd,
        msg_Err(o, "Could not read adapter capabilities. (hr=0x%0lx)", hr);
        return hr;
     }
+    msg_Dbg(o, "D3D9 device caps 0x%0lX / 0x%0lX", out->caps.DevCaps, out->caps.DevCaps2);
 
     /* TODO: need to test device capabilities and select the right render function */
     if (!(out->caps.DevCaps2 & D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES)) {
@@ -125,7 +126,7 @@ HRESULT D3D9_CreateDevice(vlc_object_t *o, d3d9_handle_t *hd3d, HWND hwnd,
     if (SUCCEEDED(hr))
         out->owner = true;
     else
-        msg_Err(o, "failed to create the D3D9%s device %d/%d flags 0x%x. (hr=0x%lX)",
+        msg_Err(o, "failed to create the D3D9%s device %d/%d flags 0x%lx. (hr=0x%lX)",
                    hd3d->use_ex?"Ex":"", AdapterToUse, DeviceType, creationFlags, hr);
     return hr;
 }



More information about the vlc-commits mailing list