enum class State {
/* expecting WEBVTT */
HEADER,
- /* awaiting a NOTE or a subtitle timing line */
+ /* awaiting a NOTE, some other metadata, or a subtitle timing line */
DATA,
/* reading the text of a subtitle */
SUBTITLE,
rs.vertical_position.line = 0;
state = State::SUBTITLE;
- } else if (!line->empty()) {
- throw WebVTTError(*line, "a note or time", _context);
}
break;
case State::SUBTITLE: