Index: Source/core/html/track/TextTrackList.cpp |
diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp |
index d0bf01cf4a398aeec4ad2bd4921130ed80884b45..411bd731dcb18ac88dc5b0fcae5d054f77ec3536 100644 |
--- a/Source/core/html/track/TextTrackList.cpp |
+++ b/Source/core/html/track/TextTrackList.cpp |
@@ -194,9 +194,7 @@ void TextTrackList::append(PassRefPtrWillBeRawPtr<TextTrack> prpTrack) |
size_t index = static_cast<LoadableTextTrack*>(track.get())->trackElementIndex(); |
m_elementTracks.insert(index, track); |
} else if (track->trackType() == TextTrack::InBand) { |
- // Insert tracks added for in-band in the media file order. |
- size_t index = static_cast<InbandTextTrack*>(track.get())->inbandTrackIndex(); |
- m_inbandTracks.insert(index, track); |
+ m_inbandTracks.append(track); |
} else { |
ASSERT_NOT_REACHED(); |
} |