hardware/intel/common/libva
Revision | e4072fb1f2cccb468fc84c67c5c51e649affec48 (tree) |
---|---|
Zeit | 2017-06-06 09:33:22 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
Avoid assertion fault when trying to draw a big picture
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>
@@ -130,7 +130,6 @@ dri2GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) | ||
130 | 130 | buffers = VA_DRI2GetBuffers(ctx->native_dpy, dri_drawable->x_drawable, |
131 | 131 | &dri2_drawable->width, &dri2_drawable->height, |
132 | 132 | attachments, i, &count); |
133 | - assert(buffers); | |
134 | 133 | if (buffers == NULL) |
135 | 134 | return NULL; |
136 | 135 |