Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
index c938c39946b299731088bc3646a3cd1c29398fb9..881b3f24ea563e101ceaf9bb395d3078de622816 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
@@ -2363,7 +2363,7 @@ AudioTrackList& HTMLMediaElement::audioTracks() |
void HTMLMediaElement::audioTrackChanged(WebMediaPlayer::TrackId trackId, bool enabled) |
{ |
- DVLOG(MEDIA_LOG_LEVEL) << "audioTrackChanged(" << (void*)this << ") trackId= " << trackId << " enabled=" << boolString(enabled); |
+ DVLOG(MEDIA_LOG_LEVEL) << "audioTrackChanged(" << (void*)this << ") trackId= " << (String)trackId << " enabled=" << boolString(enabled); |
DCHECK(RuntimeEnabledFeatures::audioVideoTracksEnabled()); |
audioTracks().scheduleChangeEvent(); |
@@ -2393,7 +2393,7 @@ WebMediaPlayer::TrackId HTMLMediaElement::addAudioTrack(const WebString& id, Web |
<< "', '" << (String)label << "', '" << (String)language << "', " << boolString(enabled) << ")"; |
if (!RuntimeEnabledFeatures::audioVideoTracksEnabled()) |
- return 0; |
+ return blink::WebString(); |
AudioTrack* audioTrack = AudioTrack::create(id, kindString, label, language, enabled); |
audioTracks().add(audioTrack); |
@@ -2419,7 +2419,7 @@ VideoTrackList& HTMLMediaElement::videoTracks() |
void HTMLMediaElement::selectedVideoTrackChanged(WebMediaPlayer::TrackId* selectedTrackId) |
{ |
- DVLOG(MEDIA_LOG_LEVEL) << "selectedVideoTrackChanged(" << (void*)this << ") selectedTrackId=" << (selectedTrackId ? String::format("%u", *selectedTrackId) : "none"); |
+ DVLOG(MEDIA_LOG_LEVEL) << "selectedVideoTrackChanged(" << (void*)this << ") selectedTrackId=" << (selectedTrackId ? ((String)*selectedTrackId) : "none"); |
DCHECK(RuntimeEnabledFeatures::audioVideoTracksEnabled()); |
if (selectedTrackId) |
@@ -2437,7 +2437,7 @@ WebMediaPlayer::TrackId HTMLMediaElement::addVideoTrack(const WebString& id, Web |
<< "', '" << (String)label << "', '" << (String)language << "', " << boolString(selected) << ")"; |
if (!RuntimeEnabledFeatures::audioVideoTracksEnabled()) |
- return 0; |
+ return blink::WebString(); |
// If another track was selected (potentially by the user), leave it selected. |
if (selected && videoTracks().selectedIndex() != -1) |