Index: Source/core/html/track/LoadableTextTrack.cpp |
diff --git a/Source/core/html/track/LoadableTextTrack.cpp b/Source/core/html/track/LoadableTextTrack.cpp |
index 84b99fe3b1fdbff2cf99af15399b290d2ad45819..82285a4c61aecb926a17d7975d6c7017b66f6ff5 100644 |
--- a/Source/core/html/track/LoadableTextTrack.cpp |
+++ b/Source/core/html/track/LoadableTextTrack.cpp |
@@ -29,6 +29,7 @@ |
#include "core/dom/ElementTraversal.h" |
#include "core/html/HTMLMediaElement.h" |
#include "core/html/HTMLTrackElement.h" |
+#include "core/html/track/CueTimeline.h" |
#include "core/html/track/TextTrackCueList.h" |
#include "core/html/track/vtt/VTTRegionList.h" |
@@ -130,8 +131,8 @@ void LoadableTextTrack::newCuesAvailable(TextTrackLoader* loader) |
m_cues->add(newCues[i].release()); |
} |
- if (mediaElement() && mode() != disabledKeyword()) |
- mediaElement()->textTrackAddCues(this, m_cues.get()); |
+ if (cueTimeline() && mode() != disabledKeyword()) |
+ cueTimeline()->addCues(this, m_cues.get()); |
} |
void LoadableTextTrack::cueLoadingCompleted(TextTrackLoader* loader, bool loadingFailed) |