From 79ca92d952ae489e88cfac20058ab45d2f87368d Mon Sep 17 00:00:00 2001 From: Tomas Gunnarsson Date: Thu, 18 Jun 2020 17:30:15 +0200 Subject: [PATCH] Add workaround method for deprecated code. This is to allow downstream cases to be able to set the media_has_been_sent flag in the sender as it's being removed from RtpState. Bug: webrtc:11581 Change-Id: I28f5fca96ba1d3f562c4d069d1b6d9af4002aaab Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/177524 Reviewed-by: Danil Chapovalov Commit-Queue: Tommi Cr-Commit-Position: refs/heads/master@{#31545} --- modules/rtp_rtcp/source/rtp_rtcp_impl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/rtp_rtcp/source/rtp_rtcp_impl.h b/modules/rtp_rtcp/source/rtp_rtcp_impl.h index 6188c18eab..989b8d3717 100644 --- a/modules/rtp_rtcp/source/rtp_rtcp_impl.h +++ b/modules/rtp_rtcp/source/rtp_rtcp_impl.h @@ -294,6 +294,10 @@ class ModuleRtpRtcpImpl : public RtpRtcp, public RTCPReceiver::ModuleRtpRtcp { RTCPReceiver* rtcp_receiver() { return &rtcp_receiver_; } const RTCPReceiver* rtcp_receiver() const { return &rtcp_receiver_; } + void SetMediaHasBeenSent(bool media_has_been_sent) { + rtp_sender_->packet_sender.SetMediaHasBeenSent(media_has_been_sent); + } + Clock* clock() const { return clock_; } // TODO(sprang): Remove when usage is gone.