From d73e3285b95ba771a22c889e86d38e0ad9c83dd3 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 7 Jan 2012 21:03:43 +0000 Subject: [PATCH] fbdev: crash on single buffering git-svn-id: file:///home/notaz/opt/svn/PicoDrive@942 be3aeb3a-fb24-0410-a615-afba39da0efa --- platform/linux/fbdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux/fbdev.c b/platform/linux/fbdev.c index 9d532a53..afd55311 100644 --- a/platform/linux/fbdev.c +++ b/platform/linux/fbdev.c @@ -94,7 +94,7 @@ void *vout_fbdev_resize(struct vout_fbdev *fbdev, int w, int h, int bpp, fbdev->fbvar_new.bits_per_pixel = bpp; fbdev->fbvar_new.nonstd = 0; // can set YUV here on omapfb fbdev->buffer_count = buffer_cnt; - fbdev->buffer_write = 1; + fbdev->buffer_write = buffer_cnt > 1 ? 1 : 0; // seems to help a bit to avoid glitches vout_fbdev_wait_vsync(fbdev); -- 2.39.5