fbdev: crash on single buffering

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@942 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2012-01-07 21:03:43 +00:00
parent e03fbe8eae
commit d73e3285b9

View file

@ -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);