diff options
Diffstat (limited to 'video/out/gl_hwdec_vdpau.c')
-rw-r--r-- | video/out/gl_hwdec_vdpau.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/gl_hwdec_vdpau.c b/video/out/gl_hwdec_vdpau.c index c59d97bc1b..49f8e7c7b5 100644 --- a/video/out/gl_hwdec_vdpau.c +++ b/video/out/gl_hwdec_vdpau.c @@ -87,14 +87,12 @@ static void destroy(struct gl_hwdec *hw) destroy_objects(hw); mp_vdpau_mixer_destroy(p->mixer); mp_vdpau_destroy(p->ctx); - - hw->info->vdpau_ctx = NULL; } static int create(struct gl_hwdec *hw) { GL *gl = hw->gl; - if (hw->info->vdpau_ctx) + if (hw->hwctx) return -1; Display *x11disp = glXGetCurrentDisplay(); if (!x11disp) @@ -115,7 +113,7 @@ static int create(struct gl_hwdec *hw) destroy(hw); return -1; } - hw->info->vdpau_ctx = p->ctx; + hw->hwctx = &p->ctx->hwctx; hw->converted_imgfmt = IMGFMT_RGB0; return 0; } |