diff options
Diffstat (limited to 'video/decode/hw_vaapi_old.c')
-rw-r--r-- | video/decode/hw_vaapi_old.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/video/decode/hw_vaapi_old.c b/video/decode/hw_vaapi_old.c index 9c0907d0d4..88379dfed8 100644 --- a/video/decode/hw_vaapi_old.c +++ b/video/decode/hw_vaapi_old.c @@ -170,8 +170,6 @@ static void destroy_decoder(struct lavc_ctx *ctx) { struct priv *p = ctx->hwdec_priv; - va_lock(p->ctx); - if (p->va_context->context_id != VA_INVALID_ID) { vaDestroyContext(p->display, p->va_context->context_id); p->va_context->context_id = VA_INVALID_ID; @@ -182,8 +180,6 @@ static void destroy_decoder(struct lavc_ctx *ctx) p->va_context->config_id = VA_INVALID_ID; } - va_unlock(p->ctx); - mp_image_pool_clear(p->pool); } @@ -206,8 +202,6 @@ static int init_decoder(struct lavc_ctx *ctx, int w, int h) destroy_decoder(ctx); - va_lock(p->ctx); - const struct hwdec_profile_entry *pe = hwdec_find_profile(ctx, profiles); if (!pe) { MP_ERR(p, "Unsupported codec or profile.\n"); @@ -282,7 +276,6 @@ static int init_decoder(struct lavc_ctx *ctx, int w, int h) res = 0; error: - va_unlock(p->ctx); talloc_free(tmp); return res; } @@ -404,18 +397,6 @@ static struct mp_image *copy_image(struct lavc_ctx *ctx, struct mp_image *img) return img; } -static void intel_shit_lock(struct lavc_ctx *ctx) -{ - struct priv *p = ctx->hwdec_priv; - va_lock(p->ctx); -} - -static void intel_crap_unlock(struct lavc_ctx *ctx) -{ - struct priv *p = ctx->hwdec_priv; - va_unlock(p->ctx); -} - const struct vd_lavc_hwdec mp_vd_lavc_vaapi = { .type = HWDEC_VAAPI, .image_format = IMGFMT_VAAPI, @@ -424,8 +405,6 @@ const struct vd_lavc_hwdec mp_vd_lavc_vaapi = { .uninit = uninit, .init_decoder = init_decoder, .allocate_image = allocate_image, - .lock = intel_shit_lock, - .unlock = intel_crap_unlock, .process_image = update_format, }; |