[vlc-commits] vdpau: fix VdpDecoderCreate error handling (fix #14878)

Rémi Denis-Courmont git at videolan.org
Sat Jun 13 22:11:01 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 13 23:08:37 2015 +0300| [647306cead8bda2ab5e3cb5bf8552e7068484b11] | committer: Rémi Denis-Courmont

vdpau: fix VdpDecoderCreate error handling (fix #14878)

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

 modules/hw/vdpau/avcodec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 6a3b67e..0c2a946 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -316,6 +316,7 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, enum PixelFormat pix_fmt,
                              avctx->refs, &hwctx->decoder);
     if (err != VDP_STATUS_OK)
     {
+        hwctx->decoder = VDP_INVALID_HANDLE;
         msg_Err(va, "%s creation failure: %s", "decoder",
                 vdp_get_error_string(sys->vdp, err));
         goto error;



More information about the vlc-commits mailing list