uterm_video: check online-state before swapping

Check whether the display is online before swapping buffers in DRM
backend.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-03-24 16:01:13 +01:00
parent ead3172d49
commit ec6e095a64

View File

@ -363,7 +363,7 @@ static int display_swap(struct uterm_display *disp)
{
int ret;
if (!display_is_conn(disp) || !video_is_awake(disp->video))
if (!display_is_online(disp) || !video_is_awake(disp->video))
return -EINVAL;
if (disp->dpms != UTERM_DPMS_ON)
return -EINVAL;