summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-07-23 13:28:29 +0200
committerAustin Yuan <shengquan.yuan@gmail.com>2010-07-26 10:08:47 +0800
commit6dc2d5c59b8578da7d9dc9c7818f94eabfd13800 (patch)
treeb7f3d69a3fff9093d77593ff906cff4f15bd74de
parenta6142c41ccdfdf4970d194e51bb55b5faf32b33b (diff)
Fix va_TraceEndPicture() to unlock the VA surface.
-rw-r--r--va/va_trace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/va/va_trace.c b/va/va_trace.c
index 4589a48..17dc2f8 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1086,8 +1086,10 @@ void va_TraceEndPicture(
va_TraceMsg("\tchroma_u_offset=%d\n", chroma_u_offset);
va_TraceMsg("\tchroma_v_offset=%d\n", chroma_v_offset);
- if (!buffer)
+ if (!buffer) {
+ vaUnlockSurface(dpy, trace_rendertarget);
return;
+ }
Y_data = buffer;
UV_data = buffer + luma_offset;
@@ -1120,4 +1122,6 @@ void va_TraceEndPicture(
tmp = UV_data + i * chroma_u_stride;
}
}
+
+ vaUnlockSurface(dpy, trace_rendertarget);
}