fix for playing video for long time crash

fix for playing video for long time crash