Fixes crash when showing video and using java7.