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

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

Issue 11166002: Plumb render view ID from audio-related code in renderer through IPCs to AudioRendererHost in brows… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add plumbing for input side as well. Created 8 years, 2 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/media_stream_dependency_factory.cc
diff --git a/content/renderer/media/media_stream_dependency_factory.cc b/content/renderer/media/media_stream_dependency_factory.cc
index 19c76914a8d3984515453a59f6f20ddc350033d3..2f57be4b5e0ff78df22d19390ad9ae8f358a6b50 100644
--- a/content/renderer/media/media_stream_dependency_factory.cc
+++ b/content/renderer/media/media_stream_dependency_factory.cc
@@ -194,7 +194,10 @@ bool MediaStreamDependencyFactory::CreateNativeLocalMediaStream(
bool MediaStreamDependencyFactory::CreatePeerConnectionFactory() {
if (!pc_factory_.get()) {
DCHECK(!audio_device_);
- audio_device_ = new WebRtcAudioDeviceImpl();
+ // TODO(miu): Some significant refactoring work is needed to support a
+ // separate WebRtcAudioDevice per render view. For now, here's a stub:
+ static const int kUnknownRenderViewId = -1;
+ audio_device_ = new WebRtcAudioDeviceImpl(kUnknownRenderViewId);
scoped_refptr<webrtc::PeerConnectionFactoryInterface> factory(
webrtc::CreatePeerConnectionFactory(worker_thread_,
signaling_thread_,

Powered by Google App Engine
This is Rietveld 408576698