st/va: add missing mutex_unlock

Fixes: c59628d11b ("st/va: enable dual instances encode by sync surface")

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Eric Engestrom 2016-08-21 22:11:48 +01:00 committed by Christian König
parent e7530bfcd6
commit cd340052ad

View file

@ -106,8 +106,10 @@ vlVaSyncSurface(VADriverContextP ctx, VASurfaceID render_target)
pipe_mutex_lock(drv->mutex);
surf = handle_table_get(drv->htab, render_target);
if (!surf || !surf->buffer)
if (!surf || !surf->buffer) {
pipe_mutex_unlock(drv->mutex);
return VA_STATUS_ERROR_INVALID_SURFACE;
}
context = handle_table_get(drv->htab, surf->ctx);
if (!context) {