Add missing '&'s to some function parameters
Bug: webrtc:13616 Change-Id: Id4a6d82fbbedbb505585dfb8714ff62cecd74c98 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249360 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35826}
This commit is contained in:
parent
950c8e924e
commit
b8ef923ebd
@ -21,7 +21,7 @@ void CompareHeaderExtensions(const char* packet1,
|
|||||||
size_t packet1_size,
|
size_t packet1_size,
|
||||||
const char* packet2,
|
const char* packet2,
|
||||||
size_t packet2_size,
|
size_t packet2_size,
|
||||||
const std::vector<int> encrypted_headers,
|
const std::vector<int>& encrypted_headers,
|
||||||
bool expect_equal) {
|
bool expect_equal) {
|
||||||
// Sanity check: packets must be large enough to contain the RTP header and
|
// Sanity check: packets must be large enough to contain the RTP header and
|
||||||
// extensions header.
|
// extensions header.
|
||||||
|
|||||||
@ -295,7 +295,7 @@ void CompareHeaderExtensions(const char* packet1,
|
|||||||
size_t packet1_size,
|
size_t packet1_size,
|
||||||
const char* packet2,
|
const char* packet2,
|
||||||
size_t packet2_size,
|
size_t packet2_size,
|
||||||
std::vector<int> encrypted_headers,
|
const std::vector<int>& encrypted_headers,
|
||||||
bool expect_equal);
|
bool expect_equal);
|
||||||
|
|
||||||
#endif // MEDIA_BASE_FAKE_RTP_H_
|
#endif // MEDIA_BASE_FAKE_RTP_H_
|
||||||
|
|||||||
@ -638,7 +638,7 @@ std::vector<RtpSenderInfo>* RtpTransmissionManager::GetLocalSenderInfos(
|
|||||||
const RtpSenderInfo* RtpTransmissionManager::FindSenderInfo(
|
const RtpSenderInfo* RtpTransmissionManager::FindSenderInfo(
|
||||||
const std::vector<RtpSenderInfo>& infos,
|
const std::vector<RtpSenderInfo>& infos,
|
||||||
const std::string& stream_id,
|
const std::string& stream_id,
|
||||||
const std::string sender_id) const {
|
const std::string& sender_id) const {
|
||||||
for (const RtpSenderInfo& sender_info : infos) {
|
for (const RtpSenderInfo& sender_info : infos) {
|
||||||
if (sender_info.stream_id == stream_id &&
|
if (sender_info.stream_id == stream_id &&
|
||||||
sender_info.sender_id == sender_id) {
|
sender_info.sender_id == sender_id) {
|
||||||
|
|||||||
@ -50,7 +50,7 @@ namespace webrtc {
|
|||||||
struct RtpSenderInfo {
|
struct RtpSenderInfo {
|
||||||
RtpSenderInfo() : first_ssrc(0) {}
|
RtpSenderInfo() : first_ssrc(0) {}
|
||||||
RtpSenderInfo(const std::string& stream_id,
|
RtpSenderInfo(const std::string& stream_id,
|
||||||
const std::string sender_id,
|
const std::string& sender_id,
|
||||||
uint32_t ssrc)
|
uint32_t ssrc)
|
||||||
: stream_id(stream_id), sender_id(sender_id), first_ssrc(ssrc) {}
|
: stream_id(stream_id), sender_id(sender_id), first_ssrc(ssrc) {}
|
||||||
bool operator==(const RtpSenderInfo& other) {
|
bool operator==(const RtpSenderInfo& other) {
|
||||||
@ -184,7 +184,7 @@ class RtpTransmissionManager : public RtpSenderBase::SetStreamsObserver {
|
|||||||
cricket::MediaType media_type);
|
cricket::MediaType media_type);
|
||||||
const RtpSenderInfo* FindSenderInfo(const std::vector<RtpSenderInfo>& infos,
|
const RtpSenderInfo* FindSenderInfo(const std::vector<RtpSenderInfo>& infos,
|
||||||
const std::string& stream_id,
|
const std::string& stream_id,
|
||||||
std::string sender_id) const;
|
const std::string& sender_id) const;
|
||||||
|
|
||||||
// Return the RtpSender with the given track attached.
|
// Return the RtpSender with the given track attached.
|
||||||
rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>
|
rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user