mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
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
This commit is contained in:
parent
5bad4ba482
commit
238df952ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user