[vlc-commits] dxva2: debug how many surfaces failed to allocate

Steve Lhomme git at videolan.org
Tue Aug 2 11:24:56 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Aug  2 11:15:08 2016 +0200| [179078f42136cc6c714d2352214b9e2517390ddf] | committer: Jean-Baptiste Kempf

dxva2: debug how many surfaces failed to allocate

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

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

 modules/codec/avcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index f08865f..f2adb47 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -711,7 +711,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id, const video_format_t
                                                          (LPDIRECT3DSURFACE9*) sys->hw_surface,
                                                          NULL);
     if (FAILED(hr)) {
-        msg_Err(va, "IDirectXVideoAccelerationService_CreateSurface failed (hr=0x%0lx)", hr);
+        msg_Err(va, "IDirectXVideoAccelerationService_CreateSurface %d failed (hr=0x%0lx)", sys->surface_count, hr);
         sys->surface_count = 0;
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list