Index: webrtc/audio/audio_receive_stream.cc |
diff --git a/webrtc/audio/audio_receive_stream.cc b/webrtc/audio/audio_receive_stream.cc |
index 1ed891fe5d542d2420d5e9bdd12f5fa568e6a796..dfad79f9d76420460267f2fdd0e1265a928b8786 100644 |
--- a/webrtc/audio/audio_receive_stream.cc |
+++ b/webrtc/audio/audio_receive_stream.cc |
@@ -203,10 +203,9 @@ |
return stats; |
} |
-void AudioReceiveStream::SetSink( |
- const rtc::scoped_refptr<AudioSinkInterface>& sink) { |
- RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
- channel_proxy_->SetSink(sink); |
+void AudioReceiveStream::SetSink(rtc::scoped_ptr<AudioSinkInterface> sink) { |
+ RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
+ channel_proxy_->SetSink(std::move(sink)); |
} |
const webrtc::AudioReceiveStream::Config& AudioReceiveStream::config() const { |