mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ public final class WebvttDecoder extends SimpleSubtitleDecoder {
|
|||
foundEvent = EVENT_END_OF_FILE;
|
||||
} else if (STYLE_START.equals(line)) {
|
||||
foundEvent = EVENT_STYLE_BLOCK;
|
||||
} else if (COMMENT_START.startsWith(line)) {
|
||||
} else if (line.startsWith(COMMENT_START)) {
|
||||
foundEvent = EVENT_COMMENT;
|
||||
} else {
|
||||
foundEvent = EVENT_CUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue