From 238df952ef0969341e611a645665411a4052dca2 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Fri, 8 May 2009 15:43:54 +0000 Subject: Do not use flag CWBackPixel when calling vo_x11_create_vo_window(): It leads to VDPAU errors after video aspect ratio changes. Patch by Stephen Warren. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29276 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 110a44450d..881023ae21 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -575,7 +575,9 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, xswa.background_pixel = 0; xswa.border_pixel = 0; - xswamask = CWBackPixel | CWBorderPixel; + /* Do not use CWBackPixel: It leads to VDPAU errors after + aspect ratio changes. */ + xswamask = CWBorderPixel; vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, d_width, d_height, flags, CopyFromParent, "vdpau", title); -- cgit v1.2.3