X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fopengl.c;h=698defc9c08658ab791b185c3579ed3471477455;hb=eb5d8fada5ec07e3a8f4cb2b2cd6df4f7af2b9fd;hp=c8a1cc04e07bb35c17129bd85573b4ac43fc5880;hpb=f04686fc573553671fa0d1c342087dcf1fb5a3d6;p=vlc diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c index c8a1cc04e0..698defc9c0 100644 --- a/modules/video_output/opengl.c +++ b/modules/video_output/opengl.c @@ -626,17 +626,9 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args ) { vout_sys_t *p_sys = p_vout->p_sys; - 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 ); - } + if( p_sys->p_vout->pf_control ) + return p_sys->p_vout->pf_control( p_sys->p_vout, i_query, args ); + return VLC_EGENERIC; } static int InitTextures( vout_thread_t *p_vout )