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

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

Issue 15014019: Merge 198717 "Fixed the crash when the WebRtcAudioCapturer::|buf..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 7 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
« no previous file with comments | « content/renderer/media/webrtc_audio_capturer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_local_audio_track.cc
===================================================================
--- content/renderer/media/webrtc_local_audio_track.cc (revision 199430)
+++ content/renderer/media/webrtc_local_audio_track.cc (working copy)
@@ -30,7 +30,6 @@
track_source_(track_source) {
DCHECK(capturer);
capturer_->AddSink(this);
- params_ = capturer_->audio_parameters();
DVLOG(1) << "WebRtcLocalAudioTrack::WebRtcLocalAudioTrack()";
}
@@ -72,6 +71,11 @@
const media::AudioParameters& params) {
base::AutoLock auto_lock(lock_);
params_ = params;
+
+ // Update all the existing sinks with the new format.
+ for (SinkList::const_iterator it = sinks_.begin();
+ it != sinks_.end(); ++it)
+ (*it)->SetCaptureFormat(params);
}
// webrtc::AudioTrackInterface implementation.
« no previous file with comments | « content/renderer/media/webrtc_audio_capturer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698