From d275e21d6a210064ab62e56334005c923481a6bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Jan 2013 16:19:15 +0100 Subject: vo_xv: always try to use native bit depth Exactly the same issue as with the previous commit. Just like the vdpau code, this was apparently copy-pasted from the vo_x11 code, even though it doesn't make much sense. --- video/out/vo_xv.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'video') diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c index ea4fa5a015..90cc112ad2 100644 --- a/video/out/vo_xv.c +++ b/video/out/vo_xv.c @@ -157,7 +157,6 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, XSetWindowAttributes xswa; XWindowAttributes attribs; unsigned long xswamask; - int depth; struct xvctx *ctx = vo->priv; int i; @@ -200,10 +199,8 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, #endif XGetWindowAttributes(x11->display, DefaultRootWindow(x11->display), &attribs); - depth = attribs.depth; - if (depth != 15 && depth != 16 && depth != 24 && depth != 32) - depth = 24; - XMatchVisualInfo(x11->display, x11->screen, depth, TrueColor, &vinfo); + XMatchVisualInfo(x11->display, x11->screen, attribs.depth, TrueColor, + &vinfo); xswa.border_pixel = 0; xswamask = CWBorderPixel; -- cgit v1.2.3