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