[vlc-commits] dxva2: log why we didn't get a configuration list
Steve Lhomme
git at videolan.org
Tue Mar 20 10:49:16 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar 20 09:42:03 2018 +0100| [0fef33616864046714dad87d4bdce2029e49384f] | committer: Hugo Beauzée-Luyssen
dxva2: log why we didn't get a configuration list
(cherry picked from commit 2dd4229a1460ad9f89d9b14777d491ffdad26b80)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0fef33616864046714dad87d4bdce2029e49384f
---
modules/codec/avcodec/dxva2.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 42f517212d..87f9988175 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -642,13 +642,14 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
/* List all configurations available for the decoder */
UINT cfg_count = 0;
DXVA2_ConfigPictureDecode *cfg_list = NULL;
- if (FAILED(IDirectXVideoDecoderService_GetDecoderConfigurations(sys->d3ddec,
- &sys->input,
- &dsc,
- NULL,
- &cfg_count,
- &cfg_list))) {
- msg_Err(va, "IDirectXVideoDecoderService_GetDecoderConfigurations failed");
+ hr = IDirectXVideoDecoderService_GetDecoderConfigurations(sys->d3ddec,
+ &sys->input,
+ &dsc,
+ NULL,
+ &cfg_count,
+ &cfg_list);
+ if (FAILED(hr)) {
+ msg_Err(va, "IDirectXVideoDecoderService_GetDecoderConfigurations failed. (hr=0x%0lx)", hr);
goto error;
}
msg_Dbg(va, "we got %d decoder configurations", cfg_count);
More information about the vlc-commits
mailing list