| Index: Source/core/html/track/TextTrackList.cpp
|
| diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp
|
| index 588e3768c9aa5368e9406d72f08b47160df738bf..cd429a9d64b70a79d7b6ed7aee1f6a1cef54bf64 100644
|
| --- a/Source/core/html/track/TextTrackList.cpp
|
| +++ b/Source/core/html/track/TextTrackList.cpp
|
| @@ -198,7 +198,7 @@ void TextTrackList::append(PassRefPtr<TextTrack> prpTrack)
|
| scheduleAddTrackEvent(track.release());
|
| }
|
|
|
| -void TextTrackList::remove(TextTrack* track)
|
| +void TextTrackList::remove(TextTrack* track, bool scheduleEvent)
|
| {
|
| Vector<RefPtr<TextTrack> >* tracks = 0;
|
| RefPtr<InbandTextTrack> inbandTrack;
|
| @@ -228,7 +228,8 @@ void TextTrackList::remove(TextTrack* track)
|
| if (inbandTrack)
|
| inbandTrack->trackRemoved();
|
|
|
| - scheduleRemoveTrackEvent(track);
|
| + if (scheduleEvent)
|
| + scheduleRemoveTrackEvent(track);
|
| }
|
|
|
| bool TextTrackList::contains(TextTrack* track) const
|
|
|