hls: Return all packets from a previous variant before moving on to the next one