fixes in playlist factory state machine w.r.to identying the segment types