hardware/intel/libva
修订版 | 6dc2d5c59b8578da7d9dc9c7818f94eabfd13800 (tree) |
---|---|
时间 | 2010-07-26 11:08:47 |
作者 | Gwenole Beauchesne <gbeauchesne@spli...> |
Commiter | Austin Yuan |
Fix va_TraceEndPicture() to unlock the VA surface.
@@ -1086,8 +1086,10 @@ void va_TraceEndPicture( | ||
1086 | 1086 | va_TraceMsg("\tchroma_u_offset=%d\n", chroma_u_offset); |
1087 | 1087 | va_TraceMsg("\tchroma_v_offset=%d\n", chroma_v_offset); |
1088 | 1088 | |
1089 | - if (!buffer) | |
1089 | + if (!buffer) { | |
1090 | + vaUnlockSurface(dpy, trace_rendertarget); | |
1090 | 1091 | return; |
1092 | + } | |
1091 | 1093 | |
1092 | 1094 | Y_data = buffer; |
1093 | 1095 | UV_data = buffer + luma_offset; |
@@ -1120,4 +1122,6 @@ void va_TraceEndPicture( | ||
1120 | 1122 | tmp = UV_data + i * chroma_u_stride; |
1121 | 1123 | } |
1122 | 1124 | } |
1125 | + | |
1126 | + vaUnlockSurface(dpy, trace_rendertarget); | |
1123 | 1127 | } |