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

Unified Diff: talk/app/webrtc/remoteaudiosource.cc

Issue 1551813002: Storing raw audio sink for default audio track. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding unit tests for SetRawAudioSink. Created 4 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: talk/app/webrtc/remoteaudiosource.cc
diff --git a/talk/app/webrtc/remoteaudiosource.cc b/talk/app/webrtc/remoteaudiosource.cc
index e904dd91925e48654832a5bb769f2e971c8b513e..45e2e9ec8af610ed4f40e2e4ffe1b3405641c7d0 100644
--- a/talk/app/webrtc/remoteaudiosource.cc
+++ b/talk/app/webrtc/remoteaudiosource.cc
@@ -96,8 +96,7 @@ void RemoteAudioSource::Initialize(uint32_t ssrc,
// To make sure we always get notified when the provider goes out of scope,
// we register for callbacks here and not on demand in AddSink.
if (provider) { // May be null in tests.
- provider->SetRawAudioSink(
- ssrc, rtc::scoped_ptr<AudioSinkInterface>(new Sink(this)));
+ provider->SetRawAudioSink(ssrc, new rtc::RefCountedObject<Sink>(this));
}
}

Powered by Google App Engine
This is Rietveld 408576698