summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-08 15:43:54 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-08 15:43:54 +0000
commit238df952ef0969341e611a645665411a4052dca2 (patch)
treea212cdd5a41e8d1ff154e4185fefbd67e829fd42
parent5bad4ba482b9462c151c778f2791c52cb655495a (diff)
downloadmpv-238df952ef0969341e611a645665411a4052dca2.tar.bz2
mpv-238df952ef0969341e611a645665411a4052dca2.tar.xz
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
-rw-r--r--libvo/vo_vdpau.c4
1 files changed, 3 insertions, 1 deletions
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);