diff options
Diffstat (limited to 'video/out/gl_hwdec_vaglx.c')
-rw-r--r-- | video/out/gl_hwdec_vaglx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/video/out/gl_hwdec_vaglx.c b/video/out/gl_hwdec_vaglx.c index 555e61aec3..f9dc42911d 100644 --- a/video/out/gl_hwdec_vaglx.c +++ b/video/out/gl_hwdec_vaglx.c @@ -58,13 +58,11 @@ static void destroy(struct gl_hwdec *hw) struct priv *p = hw->priv; destroy_texture(hw); va_destroy(p->ctx); - - hw->info->vaapi_ctx = NULL; } static int create(struct gl_hwdec *hw) { - if (hw->info->vaapi_ctx) + if (hw->hwctx) return -1; Display *x11disp = glXGetCurrentDisplay(); if (!x11disp) @@ -84,7 +82,7 @@ static int create(struct gl_hwdec *hw) destroy(hw); return -1; } - hw->info->vaapi_ctx = p->ctx; + hw->hwctx = &p->ctx->hwctx; hw->converted_imgfmt = IMGFMT_RGB0; return 0; } |