Commit 633ea6f9 authored by Jean-Paul Saman's avatar Jean-Paul Saman

XvBA_BeginPicture: be more tolerant.

Instead of aborting on an empty buffer we just continue, since the
buffer would be freed anyway on the next line. This patch makes the
function more tolerant.
parent fb293cba
......@@ -623,8 +623,8 @@ xvba_BeginPicture(
obj_surface->va_surface_status = VASurfaceRendering;
obj_surface->used_for_decoding = 1;
ASSERT(!obj_context->va_buffers_count);
destroy_va_buffers(driver_data, obj_context);
if (obj_context->va_buffers_count > 0)
destroy_va_buffers(driver_data, obj_context);
unsigned int i;
clear_buffer(obj_surface->pic_desc_buffer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment