fix potential video issues with streams with last video PES packet overflowing between different segments
only flush buffer when switching to a different level
related to https://github.com/mangui/HLSprovider/issues/150