fix regression causes error on media transition by end-of-file