Index: third_party/WebKit/Source/core/html/track/TrackListBase.h |
diff --git a/third_party/WebKit/Source/core/html/track/TrackListBase.h b/third_party/WebKit/Source/core/html/track/TrackListBase.h |
index 778fd6133fee2ece7c59b0ad0c842401c76c0181..155eb97b552aa4df7d5266618351d01fd70b843b 100644 |
--- a/third_party/WebKit/Source/core/html/track/TrackListBase.h |
+++ b/third_party/WebKit/Source/core/html/track/TrackListBase.h |
@@ -36,7 +36,7 @@ public: |
T* getTrackById(const String& id) const |
{ |
for (unsigned i = 0; i < m_tracks.size(); ++i) { |
- if (m_tracks[i]->id() == id) |
+ if (String(m_tracks[i]->id()) == id) |
return m_tracks[i].get(); |
} |
@@ -65,7 +65,7 @@ public: |
void remove(WebMediaPlayer::TrackId trackId) |
{ |
for (unsigned i = 0; i < m_tracks.size(); ++i) { |
- if (m_tracks[i]->trackId() != trackId) |
+ if (m_tracks[i]->id() != trackId) |
continue; |
m_tracks[i]->setMediaElement(0); |