Commit 2d55c0f1 authored by gbazin's avatar gbazin
Browse files

* 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 ) ...@@ -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; vout_sys_t *p_sys = p_vout->p_sys;
if( p_sys->p_vout->pf_control ) switch( i_query )
return p_sys->p_vout->pf_control( p_sys->p_vout, i_query, args ); {
else case VOUT_SNAPSHOT:
return vout_vaControlDefault( p_vout, i_query, args ); 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 ) 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