not sure whether opengl will flicker
fix initStatistics() crash if media has no audio or video(issue 37)