Fix the stuttering when a file playback is ending.