vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]> > 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); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
