mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-19 08:37:54 +01:00
Cleanup RtcpTransceiver dependency on webrtc::Transport
Bug: webrtc:8239 Change-Id: I5740935044ba422a32b571eb9f559e83b915fe15 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/306522 Auto-Submit: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Emil Lundmark <lndmrk@webrtc.org> Commit-Queue: Emil Lundmark <lndmrk@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40152}
This commit is contained in:
parent
5f38949c54
commit
f53b3436e4
3 changed files with 0 additions and 14 deletions
|
@ -404,7 +404,6 @@ rtc_library("rtcp_transceiver") {
|
|||
":rtp_rtcp_format",
|
||||
"../../api:array_view",
|
||||
"../../api:rtp_headers",
|
||||
"../../api:transport_api",
|
||||
"../../api/task_queue",
|
||||
"../../api/units:data_rate",
|
||||
"../../api/units:time_delta",
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
namespace webrtc {
|
||||
class ReceiveStatisticsProvider;
|
||||
class Transport;
|
||||
|
||||
// Interface to watch incoming rtcp packets by media (rtp) receiver.
|
||||
// All message handlers have default empty implementation. This way users only
|
||||
|
@ -114,10 +113,6 @@ struct RtcpTransceiverConfig {
|
|||
Clock* clock = nullptr;
|
||||
|
||||
// Transport to send RTCP packets to.
|
||||
union {
|
||||
[[deprecated]] Transport* outgoing_transport = nullptr;
|
||||
Transport* deprecated_outgoing_transport;
|
||||
};
|
||||
std::function<void(rtc::ArrayView<const uint8_t>)> rtcp_transport;
|
||||
|
||||
// Queue for scheduling delayed tasks, e.g. sending periodic compound packets.
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
#include "absl/algorithm/container.h"
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/call/transport.h"
|
||||
#include "api/video/video_bitrate_allocation.h"
|
||||
#include "modules/rtp_rtcp/include/receive_statistics.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||
|
@ -54,13 +53,6 @@ std::function<void(rtc::ArrayView<const uint8_t>)> GetRtcpTransport(
|
|||
return config.rtcp_transport;
|
||||
}
|
||||
|
||||
if (config.deprecated_outgoing_transport != nullptr) {
|
||||
Transport* transport = config.deprecated_outgoing_transport;
|
||||
return [transport](rtc::ArrayView<const uint8_t> packet) {
|
||||
transport->SendRtcp(packet.data(), packet.size());
|
||||
};
|
||||
}
|
||||
|
||||
bool first = true;
|
||||
std::string log_prefix = config.debug_id;
|
||||
return [first, log_prefix](rtc::ArrayView<const uint8_t> packet) mutable {
|
||||
|
|
Loading…
Reference in a new issue