mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
st/vdpau: release held lock in error path
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit e6abc613e2)
This commit is contained in:
parent
3cd9d65a1b
commit
212a59e216
1 changed files with 3 additions and 1 deletions
|
|
@ -369,8 +369,10 @@ vlVdpVideoSurfacePutBitsYCbCr(VdpVideoSurface surface,
|
|||
if (pformat == PIPE_FORMAT_YV12 &&
|
||||
p_surf->video_buffer->buffer_format == PIPE_FORMAT_NV12)
|
||||
conversion = CONVERSION_YV12_TO_NV12;
|
||||
else
|
||||
else {
|
||||
mtx_unlock(&p_surf->device->mutex);
|
||||
return VDP_STATUS_NO_IMPLEMENTATION;
|
||||
}
|
||||
}
|
||||
|
||||
sampler_views = p_surf->video_buffer->get_sampler_view_planes(p_surf->video_buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue