diff options
author | Eric Engestrom <[email protected]> | 2016-08-21 22:11:48 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2016-08-24 10:33:07 +0200 |
commit | cd340052adf4246284311f5262664ab8867396e2 (patch) | |
tree | c556e93007212e5f350163ee83fa9d8c00624be8 /src | |
parent | e7530bfcd6acdc8f8984820445c4b41602952298 (diff) |
st/va: add missing mutex_unlock
Fixes: c59628d11b134fc01638 ("st/va: enable dual instances encode by sync surface")
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Boyuan Zhang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/va/surface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/surface.c b/src/gallium/state_trackers/va/surface.c index 012e48eb32f..3ee1cdda426 100644 --- a/src/gallium/state_trackers/va/surface.c +++ b/src/gallium/state_trackers/va/surface.c @@ -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) { |