Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: content/renderer/media/peer_connection_handler_base.cc

Issue 11828060: Roll libjingle 257:260. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/peer_connection_handler_base.cc
===================================================================
--- content/renderer/media/peer_connection_handler_base.cc (revision 176188)
+++ content/renderer/media/peer_connection_handler_base.cc (working copy)
@@ -29,9 +29,8 @@
static webrtc::MediaStreamTrackInterface* GetLocalTrack(
const std::string& source_id,
TrackList* tracks) {
- // TODO(hta): Look at MediaStreamTrackInterface - lookup by ID belongs below.
for (size_t i = 0; i < tracks->count(); ++i) {
- if (tracks->at(i)->label() == source_id)
+ if (tracks->at(i)->id() == source_id)
return tracks->at(i);
}
return NULL;
@@ -81,9 +80,9 @@
webrtc::AudioTrackInterface* audio_track = audio_tracks->at(i);
DCHECK(audio_track);
audio_source_vector[i].initialize(
- UTF8ToUTF16(audio_track->label()),
+ UTF8ToUTF16(audio_track->id()),
WebKit::WebMediaStreamSource::TypeAudio,
- UTF8ToUTF16(audio_track->label()));
+ UTF8ToUTF16(audio_track->id()));
}
// Add video tracks.
@@ -91,9 +90,9 @@
webrtc::VideoTrackInterface* video_track = video_tracks->at(i);
DCHECK(video_track);
video_source_vector[i].initialize(
- UTF8ToUTF16(video_track->label()),
+ UTF8ToUTF16(video_track->id()),
WebKit::WebMediaStreamSource::TypeVideo,
- UTF8ToUTF16(video_track->label()));
+ UTF8ToUTF16(video_track->id()));
}
WebKit::WebMediaStreamDescriptor descriptor;
descriptor.initialize(UTF8ToUTF16(stream->label()),
« no previous file with comments | « content/renderer/media/mock_peer_connection_impl.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698