uterm: video: ignore NULL buffers in vector requests
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 21 Sep 2012 11:20:21 +0000 (13:20 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 21 Sep 2012 11:20:21 +0000 (13:20 +0200)
commited969b99a8285165081fc86228e7cf09619e1c47
treed24eb30e94ba40903d82e18a6ad74808be002aaa
parentd8620f05c15ded202522ea0db62aaf58d7ae53f0
uterm: video: ignore NULL buffers in vector requests

When multiple requests are pushed into the video backends at once, we
should ignore NULL buffers. Otherwise, users might have to re-order
buffers just so we don't segfault. Instead, we now ignore them and the
application can set requests to NULL to signal us that it is unused.

This fixes some bugs with multi-monitor setups and kmscon.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm_video_drm.c
src/uterm_video_dumb.c
src/uterm_video_fbdev.c