Commit 11a747c0 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/xvba_image.c: Check if surface is really available.

parent 8f04da59
......@@ -690,6 +690,7 @@ put_image(
if (obj_surface->va_surface_status != VASurfaceReady)
return VA_STATUS_ERROR_SURFACE_BUSY;
#endif
ASSERT(obj_surface->va_surface_status == VASurfaceReady);
/* Only support upload to normal video surfaces */
if (obj_surface->xvba_surface &&
......
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