Noop fix to WebvttDecoder

We already have tests for comment blocks, and they already
pass because we discard the comment when we fail to parse it
as a cue. We should just skip it directly, however.
This commit is contained in:
Oliver Woodman 2018-11-26 10:50:49 +00:00
parent 799bf16764
commit 166acad93d

View File

@ -110,7 +110,7 @@ public final class WebvttDecoder extends SimpleSubtitleDecoder {
foundEvent = EVENT_END_OF_FILE; foundEvent = EVENT_END_OF_FILE;
} else if (STYLE_START.equals(line)) { } else if (STYLE_START.equals(line)) {
foundEvent = EVENT_STYLE_BLOCK; foundEvent = EVENT_STYLE_BLOCK;
} else if (COMMENT_START.startsWith(line)) { } else if (line.startsWith(COMMENT_START)) {
foundEvent = EVENT_COMMENT; foundEvent = EVENT_COMMENT;
} else { } else {
foundEvent = EVENT_CUE; foundEvent = EVENT_CUE;