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:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user