improves the fix for preventing playback freezing after seeking to the end of the stream