Commit ef48f9b6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't handle impossible error

glXChooseFBConfig always return NULL if there are no adequate configs.
parent 39863326
...@@ -243,10 +243,9 @@ int InitGLX13( vout_thread_t *p_vout ) ...@@ -243,10 +243,9 @@ int InitGLX13( vout_thread_t *p_vout )
/* Get the FB configuration */ /* Get the FB configuration */
p_fbconfs = glXChooseFBConfig( p_sys->p_display, 0, p_attr, &i_nbelem ); 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"); msg_Err( p_vout, "Cannot get FB configurations");
if( p_fbconfs ) XFree( p_fbconfs );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
fbconf = p_fbconfs[0]; fbconf = p_fbconfs[0];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment