Fix error occored when exited with video playing.