Index: content/renderer/media/media_stream_renderer_factory_impl.cc |
diff --git a/content/renderer/media/media_stream_renderer_factory_impl.cc b/content/renderer/media/media_stream_renderer_factory_impl.cc |
index 2bd9799bb0c6dc1fabe38e2b498e56f2698864cb..78cd37500f0c190a6848568f6dbfcf2fbae42276 100644 |
--- a/content/renderer/media/media_stream_renderer_factory_impl.cc |
+++ b/content/renderer/media/media_stream_renderer_factory_impl.cc |
@@ -11,6 +11,7 @@ |
#include "content/renderer/media/media_stream_video_track.h" |
#include "content/renderer/media/track_audio_renderer.h" |
#include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
+#include "content/renderer/media/webrtc/peer_connection_remote_audio_source.h" |
#include "content/renderer/media/webrtc_audio_renderer.h" |
#include "content/renderer/render_thread_impl.h" |
#include "media/base/audio_hardware_config.h" |
@@ -114,11 +115,7 @@ MediaStreamRendererFactoryImpl::GetAudioRenderer( |
// If the track has a local source, or is a remote track that does not use the |
// WebRTC audio pipeline, return a new TrackAudioRenderer instance. |
- // |
- // TODO(miu): In a soon up-coming change, I'll introduce a cleaner way (i.e., |
- // rather than calling GetAudioAdapter()) to determine whether a remote source |
- // is via WebRTC or something else. |
- if (audio_track->is_local_track() || !audio_track->GetAudioAdapter()) { |
+ if (!PeerConnectionRemoteAudioTrack::From(audio_track)) { |
// TODO(xians): Add support for the case where the media stream contains |
// multiple audio tracks. |
DVLOG(1) << "Creating TrackAudioRenderer for " |