| Index: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| index 5875529cfb2849413a813a08c532483ee230b7ab..956598c6b52c9041181e61362c4f9da38acaa0d5 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| @@ -301,30 +301,21 @@ void ModuleRtpRtcpImpl::SetSequenceNumber(const uint16_t seq_num) {
|
| rtp_sender_.SetSequenceNumber(seq_num);
|
| }
|
|
|
| -bool ModuleRtpRtcpImpl::SetRtpStateForSsrc(uint32_t ssrc,
|
| - const RtpState& rtp_state) {
|
| - if (rtp_sender_.SSRC() == ssrc) {
|
| - SetStartTimestamp(rtp_state.start_timestamp);
|
| - rtp_sender_.SetRtpState(rtp_state);
|
| - return true;
|
| - }
|
| - if (rtp_sender_.RtxSsrc() == ssrc) {
|
| - rtp_sender_.SetRtxRtpState(rtp_state);
|
| - return true;
|
| - }
|
| - return false;
|
| +void ModuleRtpRtcpImpl::SetRtpState(const RtpState& rtp_state) {
|
| + SetStartTimestamp(rtp_state.start_timestamp);
|
| + rtp_sender_.SetRtpState(rtp_state);
|
| }
|
|
|
| -bool ModuleRtpRtcpImpl::GetRtpStateForSsrc(uint32_t ssrc, RtpState* rtp_state) {
|
| - if (rtp_sender_.SSRC() == ssrc) {
|
| - *rtp_state = rtp_sender_.GetRtpState();
|
| - return true;
|
| - }
|
| - if (rtp_sender_.RtxSsrc() == ssrc) {
|
| - *rtp_state = rtp_sender_.GetRtxRtpState();
|
| - return true;
|
| - }
|
| - return false;
|
| +void ModuleRtpRtcpImpl::SetRtxState(const RtpState& rtp_state) {
|
| + rtp_sender_.SetRtxRtpState(rtp_state);
|
| +}
|
| +
|
| +RtpState ModuleRtpRtcpImpl::GetRtpState() const {
|
| + return rtp_sender_.GetRtpState();
|
| +}
|
| +
|
| +RtpState ModuleRtpRtcpImpl::GetRtxState() const {
|
| + return rtp_sender_.GetRtxRtpState();
|
| }
|
|
|
| uint32_t ModuleRtpRtcpImpl::SSRC() const {
|
|
|