]> git.sesse.net Git - vlc/commitdiff
EGL: print error when configuration is not usable (refs #7634)
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 23 Oct 2012 15:06:24 +0000 (18:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 23 Oct 2012 15:06:24 +0000 (18:06 +0300)
modules/video_output/egl.c

index 63f5013ce47c4db20de70c887a4577c4aa65b553..aa0bd30eddaa560c26622e5c46804ab2c6616410 100644 (file)
@@ -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);