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

Unified Diff: webrtc/voice_engine/channel.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: webrtc/voice_engine/channel.cc
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 48111dbb670fab6724bb99c7cef1c2492e662438..cf610a91ea7aecbad91d9ae71c71921430463287 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -1185,9 +1185,9 @@ Channel::UpdateLocalTimeStamp()
return 0;
}
-void Channel::SetSink(rtc::scoped_ptr<AudioSinkInterface> sink) {
+void Channel::SetSink(rtc::scoped_refptr<AudioSinkInterface> sink) {
CriticalSectionScoped cs(&_callbackCritSect);
- audio_sink_ = std::move(sink);
+ audio_sink_ = sink;
}
int32_t

Powered by Google App Engine
This is Rietveld 408576698