Merge pull request #5144 from google:dev-v2-vttfix

PiperOrigin-RevId: 222798467
This commit is contained in:
Oliver Woodman 2018-11-26 11:06:09 +00:00
commit 5284ad2e41

View file

@ -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;