Revert "Reland "RtpRtcp modules and below: Make media, RTX and FEC SSRCs const""
This reverts commit c9348218cfe0cff6d0d3a383f7d1d6cfce4b1262. Reason for revert: Downstream tests are relying on incorrect behavior which this CL explicitly checks... Original change's description: > Reland "RtpRtcp modules and below: Make media, RTX and FEC SSRCs const" > > This is a reland of 17608dc4592fe25c1effdd75bf856f4af251942e > > Downstream fixed, relanding. > > Original change's description: > > RtpRtcp modules and below: Make media, RTX and FEC SSRCs const > > > > Downstream usage of SetSsrc() / SetRtxSsrc() should now be gone. Let's > > remove them, make the members const, and remove now unnecessary locking. > > > > Bug: webrtc:10774 > > Change-Id: Ie4c1b3935508cf329c5553030f740c565d32e04b > > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155660 > > Commit-Queue: Erik Språng <sprang@webrtc.org> > > Reviewed-by: Niels Moller <nisse@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#29475} > > TBR=nisse@webrtc.org > > Bug: webrtc:10774 > Change-Id: I759bed3ff1909857696c6d1b13df595a5e552f03 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157049 > Reviewed-by: Erik Språng <sprang@webrtc.org> > Commit-Queue: Erik Språng <sprang@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#29486} TBR=nisse@webrtc.org,sprang@webrtc.org Change-Id: I168fb3738a04dfdbd1581ddd8c3276ede9f72322 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:10774 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157080 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29488}
This commit is contained in:
@ -67,6 +67,9 @@ class RTPSender {
|
||||
uint32_t TimestampOffset() const;
|
||||
void SetTimestampOffset(uint32_t timestamp);
|
||||
|
||||
// TODO(bugs.webrtc.org/10774): Remove.
|
||||
void SetSSRC(uint32_t ssrc);
|
||||
|
||||
void SetRid(const std::string& rid);
|
||||
|
||||
void SetMid(const std::string& mid);
|
||||
@ -113,10 +116,10 @@ class RTPSender {
|
||||
// RTX.
|
||||
void SetRtxStatus(int mode);
|
||||
int RtxStatus() const;
|
||||
uint32_t RtxSsrc() const {
|
||||
RTC_DCHECK(rtx_ssrc_);
|
||||
return *rtx_ssrc_;
|
||||
}
|
||||
uint32_t RtxSsrc() const;
|
||||
|
||||
// TODO(bugs.webrtc.org/10774): Remove.
|
||||
void SetRtxSsrc(uint32_t ssrc);
|
||||
|
||||
void SetRtxPayloadType(int payload_type, int associated_payload_type);
|
||||
|
||||
@ -140,9 +143,9 @@ class RTPSender {
|
||||
// Including RTP headers.
|
||||
size_t MaxRtpPacketSize() const;
|
||||
|
||||
uint32_t SSRC() const { return ssrc_; }
|
||||
uint32_t SSRC() const;
|
||||
|
||||
absl::optional<uint32_t> FlexfecSsrc() const { return flexfec_ssrc_; }
|
||||
absl::optional<uint32_t> FlexfecSsrc() const;
|
||||
|
||||
// Sends packet to |transport_| or to the pacer, depending on configuration.
|
||||
// TODO(bugs.webrtc.org/XXX): Remove in favor of EnqueuePackets().
|
||||
@ -222,8 +225,6 @@ class RTPSender {
|
||||
|
||||
const bool audio_configured_;
|
||||
|
||||
const uint32_t ssrc_;
|
||||
const absl::optional<uint32_t> rtx_ssrc_;
|
||||
const absl::optional<uint32_t> flexfec_ssrc_;
|
||||
|
||||
const std::unique_ptr<NonPacedPacketSender> non_paced_packet_sender_;
|
||||
@ -267,6 +268,9 @@ class RTPSender {
|
||||
bool sequence_number_forced_ RTC_GUARDED_BY(send_critsect_);
|
||||
uint16_t sequence_number_ RTC_GUARDED_BY(send_critsect_);
|
||||
uint16_t sequence_number_rtx_ RTC_GUARDED_BY(send_critsect_);
|
||||
// Must be explicitly set by the application, use of absl::optional
|
||||
// only to keep track of correct use.
|
||||
absl::optional<uint32_t> ssrc_ RTC_GUARDED_BY(send_critsect_);
|
||||
// RID value to send in the RID or RepairedRID header extension.
|
||||
std::string rid_ RTC_GUARDED_BY(send_critsect_);
|
||||
// MID value to send in the MID header extension.
|
||||
@ -282,6 +286,7 @@ class RTPSender {
|
||||
bool last_packet_marker_bit_ RTC_GUARDED_BY(send_critsect_);
|
||||
std::vector<uint32_t> csrcs_ RTC_GUARDED_BY(send_critsect_);
|
||||
int rtx_ RTC_GUARDED_BY(send_critsect_);
|
||||
absl::optional<uint32_t> ssrc_rtx_ RTC_GUARDED_BY(send_critsect_);
|
||||
// Mapping rtx_payload_type_map_[associated] = rtx.
|
||||
std::map<int8_t, int8_t> rtx_payload_type_map_ RTC_GUARDED_BY(send_critsect_);
|
||||
size_t rtp_overhead_bytes_per_packet_ RTC_GUARDED_BY(send_critsect_);
|
||||
|
||||
Reference in New Issue
Block a user