Index: Source/core/html/track/WebVTTParser.cpp |
diff --git a/Source/core/html/track/WebVTTParser.cpp b/Source/core/html/track/WebVTTParser.cpp |
index 32d0bbe90e08fc1bee88d55c93e3cb4a9f67f03c..c0b9283c4b42fe682985135150996462fe5e2d3a 100644 |
--- a/Source/core/html/track/WebVTTParser.cpp |
+++ b/Source/core/html/track/WebVTTParser.cpp |
@@ -180,6 +180,11 @@ void WebVTTParser::parseBytes(const char* data, unsigned length) |
break; |
case TimingsAndSettings: |
+ if (line.isEmpty()) { |
+ m_state = Id; |
+ break; |
+ } |
+ |
// 40 - Collect cue timings and settings. |
m_state = collectTimingsAndSettings(line); |
break; |