• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

Revisione4072fb1f2cccb468fc84c67c5c51e649affec48 (tree)
Zeit2017-06-06 09:33:22
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

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>

Ändern Zusammenfassung

Diff

--- a/va/x11/dri2_util.c
+++ b/va/x11/dri2_util.c
@@ -130,7 +130,6 @@ dri2GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable)
130130 buffers = VA_DRI2GetBuffers(ctx->native_dpy, dri_drawable->x_drawable,
131131 &dri2_drawable->width, &dri2_drawable->height,
132132 attachments, i, &count);
133- assert(buffers);
134133 if (buffers == NULL)
135134 return NULL;
136135