summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-23 16:19:15 +0100
committerwm4 <wm4@nowhere>2013-01-23 16:20:06 +0100
commitd275e21d6a210064ab62e56334005c923481a6bd (patch)
tree7a028d3a05e19986cbb9efd3d44b91112377555f /video
parentd49b58e78fd533b56197edb78aa1d5a2b2dbaa06 (diff)
downloadmpv-d275e21d6a210064ab62e56334005c923481a6bd.tar.bz2
mpv-d275e21d6a210064ab62e56334005c923481a6bd.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_xv.c7
1 files changed, 2 insertions, 5 deletions
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;