Commit 047e3264 authored by Iurie Salomov's avatar Iurie Salomov Committed by Julien Isorce

va: check null context in vlVaDestroyContext

Signed-off-by: default avatarIurie Salomov <iurcic@gmail.com>
Reviewed-by: default avatarJulien Isorce <j.isorce@samsung.com>
parent 8f3b516f
......@@ -283,6 +283,10 @@ vlVaDestroyContext(VADriverContextP ctx, VAContextID context_id)
drv = VL_VA_DRIVER(ctx);
pipe_mutex_lock(drv->mutex);
context = handle_table_get(drv->htab, context_id);
if (!context) {
pipe_mutex_unlock(drv->mutex);
return VA_STATUS_ERROR_INVALID_CONTEXT;
}
if (context->decoder) {
if (u_reduce_video_profile(context->decoder->profile) ==
......
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