From bc6e1b20832112eb92df05c1da2b6175d62760a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 23 Oct 2012 18:06:24 +0300 Subject: [PATCH] EGL: print error when configuration is not usable (refs #7634) --- modules/video_output/egl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/video_output/egl.c b/modules/video_output/egl.c index 63f5013ce4..aa0bd30edd 100644 --- a/modules/video_output/egl.c +++ b/modules/video_output/egl.c @@ -181,7 +181,10 @@ static int Open (vlc_object_t *obj, const struct gl_api *api) if (eglChooseConfig (dpy, conf_attr, cfgv, 1, &cfgc) != EGL_TRUE || cfgc == 0) + { + msg_Err (obj, "cannot choose EGL configuration"); goto error; + } /* Create a drawing surface */ EGLNativeWindowType win = vlc_eglGetWindow(gl->surface); -- 2.39.2