Commit 09f2f703 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d9: better warnings

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2bba4c14
...@@ -1006,6 +1006,7 @@ static int Direct3D9CreatePool(vout_display_t *vd, video_format_t *fmt) ...@@ -1006,6 +1006,7 @@ static int Direct3D9CreatePool(vout_display_t *vd, video_format_t *fmt)
picture_t *picture = picture_NewFromResource(fmt, &resource); picture_t *picture = picture_NewFromResource(fmt, &resource);
if (!picture) { if (!picture) {
msg_Err(vd, "Failed to create a picture from resources.");
IDirect3DSurface9_Release(surface); IDirect3DSurface9_Release(surface);
free(picsys); free(picsys);
return VLC_ENOMEM; return VLC_ENOMEM;
...@@ -1483,7 +1484,7 @@ static int Direct3D9ImportPicture(vout_display_t *vd, ...@@ -1483,7 +1484,7 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_LINEAR); hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_LINEAR);
IDirect3DSurface9_Release(destination); IDirect3DSurface9_Release(destination);
if (FAILED(hr)) { 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; return VLC_EGENERIC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment