[vlc-commits] direct3d9: better warnings

Steve Lhomme git at videolan.org
Wed Apr 22 18:16:02 CEST 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Apr 20 11:13:38 2015 +0000| [09f2f7033b69aa6bded440d206ade1bec8e15929] | committer: Jean-Baptiste Kempf

direct3d9: better warnings

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

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

 modules/video_output/msw/direct3d9.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/msw/direct3d9.c b/modules/video_output/msw/direct3d9.c
index d38f3a3..93f2e07 100644
--- a/modules/video_output/msw/direct3d9.c
+++ b/modules/video_output/msw/direct3d9.c
@@ -1006,6 +1006,7 @@ static int Direct3D9CreatePool(vout_display_t *vd, video_format_t *fmt)
 
     picture_t *picture = picture_NewFromResource(fmt, &resource);
     if (!picture) {
+        msg_Err(vd, "Failed to create a picture from resources.");
         IDirect3DSurface9_Release(surface);
         free(picsys);
         return VLC_ENOMEM;
@@ -1483,7 +1484,7 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
     hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_LINEAR);
     IDirect3DSurface9_Release(destination);
     if (FAILED(hr)) {
-        msg_Dbg(vd, "Failed IDirect3DTexture9_GetSurfaceLevel: 0x%0lx", hr);
+        msg_Dbg(vd, "Failed IDirect3DDevice9_StretchRect: source 0x%p 0x%0lx", source, hr);
         return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list