Add periodic compound packet sending to RtcpTransceiver
Bug: webrtc:8239 Change-Id: I1511db63a15e8c5101a933e55e66d3877ff963be Reviewed-on: https://webrtc-review.googlesource.com/15440 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20480}
This commit is contained in:
committed by
Commit Bot
parent
e5c4265619
commit
8c8d49ea0f
@ -43,15 +43,20 @@ bool RtcpTransceiverConfig::Validate() const {
|
||||
<< " more than " << IP_PACKET_SIZE << " is unsupported.";
|
||||
return false;
|
||||
}
|
||||
if (outgoing_transport == nullptr) {
|
||||
if (!outgoing_transport) {
|
||||
LOG(LS_ERROR) << debug_id << "outgoing transport must be set";
|
||||
return false;
|
||||
}
|
||||
if (min_periodic_report_ms <= 0) {
|
||||
LOG(LS_ERROR) << debug_id << "period " << min_periodic_report_ms
|
||||
if (report_period_ms <= 0) {
|
||||
LOG(LS_ERROR) << debug_id << "period " << report_period_ms
|
||||
<< "ms between reports should be positive.";
|
||||
return false;
|
||||
}
|
||||
if (schedule_periodic_compound_packets && !task_queue) {
|
||||
LOG(LS_ERROR) << debug_id
|
||||
<< "missing task queue for periodic compound packets";
|
||||
return false;
|
||||
}
|
||||
// TODO(danilchap): Remove or update the warning when RtcpTransceiver supports
|
||||
// send-only sessions.
|
||||
if (receive_statistics == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user