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:
parent
799bf16764
commit
166acad93d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user