From 1186ad17eedce7d30885d098509f2e1d959df53c Mon Sep 17 00:00:00 2001 From: Steve Lhomme <robux4@ycbcr.xyz> Date: Fri, 29 Apr 2022 11:22:27 +0200 Subject: [PATCH] hw:d3d11 fix the decoder_UpdateVideoOutput() output value check It returns 0 or -1, not a VLC_xxx error message. --- modules/hw/d3d11/d3d11_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hw/d3d11/d3d11_decoder.cpp b/modules/hw/d3d11/d3d11_decoder.cpp index f0115304ca3d..31c7e5f78dc0 100644 --- a/modules/hw/d3d11/d3d11_decoder.cpp +++ b/modules/hw/d3d11/d3d11_decoder.cpp @@ -137,7 +137,7 @@ static int DecodeFrame( decoder_t *p_dec, block_t *p_block ) return VLC_EGENERIC; } - if( decoder_UpdateVideoOutput( p_dec, p_sys->vctx ) != VLC_SUCCESS ) + if( decoder_UpdateVideoOutput( p_dec, p_sys->vctx ) ) { block_Release( p_block ); return VLCDEC_SUCCESS; @@ -284,7 +284,7 @@ int D3D11OpenBlockDecoder( vlc_object_t *obj ) return VLC_EGENERIC; } - if( decoder_UpdateVideoOutput( p_dec, p_sys->vctx ) != VLC_SUCCESS ) + if( decoder_UpdateVideoOutput( p_dec, p_sys->vctx ) ) { vlc_video_context_Release(p_sys->vctx); vlc_decoder_device_Release(dec_dev); -- GitLab