Commit 2d55c0f1 authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/opengl.c: fixed snapshots in opengl mode.

parent be7f00e1
......@@ -661,10 +661,17 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
{
vout_sys_t *p_sys = p_vout->p_sys;
if( p_sys->p_vout->pf_control )
return p_sys->p_vout->pf_control( p_sys->p_vout, i_query, args );
else
switch( i_query )
{
case VOUT_SNAPSHOT:
return vout_vaControlDefault( p_vout, i_query, args );
default:
if( p_sys->p_vout->pf_control )
return p_sys->p_vout->pf_control( p_sys->p_vout, i_query, args );
else
return vout_vaControlDefault( p_vout, i_query, args );
}
}
static int InitTextures( vout_thread_t *p_vout )
......
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