set state to SEARCH_FOR_FRAME_SYNC after flush