summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-25 19:52:00 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-25 19:52:00 +0000
commitd463c9e96d9275630a2e8e4a744bec2a5482609a (patch)
treeac3e034fd0dca3f77154b1aab4e86ba0e5d1008c /libvo
parent7945689e2562134179b0ac6e7ac3fdb816bdbf71 (diff)
downloadmpv-d463c9e96d9275630a2e8e4a744bec2a5482609a.tar.bz2
mpv-d463c9e96d9275630a2e8e4a744bec2a5482609a.tar.xz
if double buffering is enabled, but vbeSetDisplayStart() fails, turn double buffering off (also adds support for VESA output under VMware).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19537 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index 229446f3d0..b2098ecb25 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -1022,7 +1022,12 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
}
if(HAS_DGA() && vo_doublebuffering)
{
- for(i=0;i<MAX_BUFFERS;i++)
+ if (VBE_OK != vbeSetDisplayStart(0, vo_vsync))
+ {
+ mp_msg(MSGT_VO,MSGL_WARN, "[VO_VESA] Can't use double buffering: changing displays failed.\n");
+ multi_size = 1;
+ }
+ for(i=0;i<multi_size;i++)
{
win.ptr = dga_buffer = video_base + multi_buff[i];
clear_screen(); /* Clear screen for stupid BIOSes */