Commit 647306ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau: fix VdpDecoderCreate error handling (fix #14878)

parent 31344ca1
...@@ -316,6 +316,7 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, enum PixelFormat pix_fmt, ...@@ -316,6 +316,7 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, enum PixelFormat pix_fmt,
avctx->refs, &hwctx->decoder); avctx->refs, &hwctx->decoder);
if (err != VDP_STATUS_OK) if (err != VDP_STATUS_OK)
{ {
hwctx->decoder = VDP_INVALID_HANDLE;
msg_Err(va, "%s creation failure: %s", "decoder", msg_Err(va, "%s creation failure: %s", "decoder",
vdp_get_error_string(sys->vdp, err)); vdp_get_error_string(sys->vdp, err));
goto error; goto error;
......
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