The display server doesn't support the big picture, so the returned
buffer is NULL. The fix returns a NULL buffer instead of assertion fault
in libva-x11, the backend driver should handle this case in a right way
as well.
This fixes https://github.com/01org/libva/issues/51
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
buffers = VA_DRI2GetBuffers(ctx->native_dpy, dri_drawable->x_drawable,
&dri2_drawable->width, &dri2_drawable->height,
attachments, i, &count);
- assert(buffers);
if (buffers == NULL)
return NULL;