Allow to change video input from outside, fixes back camera rotation
Don't draw OpenGL if the app is inactive or it crashes
Clear OpenGL buffers