]> git.sesse.net Git - vlc/commitdiff
Don't handle impossible error
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 24 Feb 2009 17:06:37 +0000 (19:06 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 24 Feb 2009 17:06:37 +0000 (19:06 +0200)
glXChooseFBConfig always return NULL if there are no adequate configs.

modules/video_output/x11/glx.c

index b2553cac436b8c07776497c783d1e8c2ced2a524..919fa405ec7ba49d9fd88c7827821d0fca76ec31 100644 (file)
@@ -243,10 +243,9 @@ int InitGLX13( vout_thread_t *p_vout )
 
     /* Get the FB configuration */
     p_fbconfs = glXChooseFBConfig( p_sys->p_display, 0, p_attr, &i_nbelem );
-    if( !p_fbconfs || (i_nbelem <= 0) )
+    if( p_fbconfs == NULL )
     {
         msg_Err( p_vout, "Cannot get FB configurations");
-        if( p_fbconfs ) XFree( p_fbconfs );
         return VLC_EGENERIC;
     }
     fbconf = p_fbconfs[0];