Modify the parameter type of PeerConnectionObserver callback OnAddTrack.

Change the second parameter type to a const reference of vector so that
the vector will not be copied.

BUG=none

Review-Url: https://codereview.webrtc.org/2551603003
Cr-Commit-Position: refs/heads/master@{#15396}
This commit is contained in:
zhihuang
2016-12-02 15:41:10 -08:00
committed by Commit bot
parent d5c93e0be1
commit c63b894686
2 changed files with 5 additions and 4 deletions

View File

@ -603,7 +603,7 @@ class PeerConnectionObserver {
// implement it.
virtual void OnAddTrack(
rtc::scoped_refptr<RtpReceiverInterface> receiver,
std::vector<rtc::scoped_refptr<MediaStreamInterface>> streams) {}
const std::vector<rtc::scoped_refptr<MediaStreamInterface>>& streams) {}
protected:
// Dtor protected as objects shouldn't be deleted via this interface.