Fix audio and video synching in playlists with discontinuities and seeking into discontinuities

Last commit had issues in these cases