[vlc-commits] EGL: print error when configuration is not usable (refs #7634)

Rémi Denis-Courmont git at videolan.org
Tue Oct 23 17:07:05 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 23 18:06:24 2012 +0300| [bc6e1b20832112eb92df05c1da2b6175d62760a0] | committer: Rémi Denis-Courmont

EGL: print error when configuration is not usable (refs #7634)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc6e1b20832112eb92df05c1da2b6175d62760a0
---

 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 63f5013..aa0bd30 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);



More information about the vlc-commits mailing list