Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1396)

Unified Diff: Source/core/loader/TextTrackLoader.cpp

Issue 59453002: Add a flushing mechanism for the WebVTTParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Even more binary Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/track/WebVTTParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/TextTrackLoader.cpp
diff --git a/Source/core/loader/TextTrackLoader.cpp b/Source/core/loader/TextTrackLoader.cpp
index 18528b854e1555efa5b8270db82f05bfdb7a491e..111395f2a62b25b4539b25577175580cbd51f1fc 100644
--- a/Source/core/loader/TextTrackLoader.cpp
+++ b/Source/core/loader/TextTrackLoader.cpp
@@ -109,6 +109,9 @@ void TextTrackLoader::notifyFinished(Resource* resource)
if (m_state != Failed)
m_state = resource->errorOccurred() ? Failed : Finished;
+ if (m_state == Finished && m_cueParser)
+ m_cueParser->flush();
+
if (!m_cueLoadTimer.isActive())
m_cueLoadTimer.startOneShot(0);
« no previous file with comments | « Source/core/html/track/WebVTTParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698