summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-06 21:20:23 +0100
committerwm4 <wm4@nowhere>2015-11-06 21:20:23 +0100
commitb984ec52aaf569a9be4acfe6fdd056f309a3b40e (patch)
tree46bf89c2b9e697b4f68f3b34eda4b053e15ad068 /video/out/x11_common.h
parent9693e0f57ac75bd5c5d8313dd933989dd3e64d31 (diff)
downloadmpv-b984ec52aaf569a9be4acfe6fdd056f309a3b40e.tar.bz2
mpv-b984ec52aaf569a9be4acfe6fdd056f309a3b40e.tar.xz
vo_opengl: x11: silence error messages when using legacy GL context
glXCreateContextAttribsARB() by design can throw some X11 errors. We ignore these, but we generally still print error messages to the terminal. This was confusing/annoying users, so silence it. The stupid part is that the Xlib error handler is global, so we have to be slightly careful here.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index a25b8e2cca..7707c0a707 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -130,4 +130,6 @@ bool vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis,
void vo_x11_config_vo_window(struct vo *vo);
int vo_x11_control(struct vo *vo, int *events, int request, void *arg);
+void vo_x11_silence_xlib(int dir);
+
#endif /* MPLAYER_X11_COMMON_H */