Add sending Nack to RtcpTransceiver
Bug: webrtc:8239 Change-Id: Idf27bb05958d9eceaf601078019f05444232581f Reviewed-on: https://webrtc-review.googlesource.com/26260 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20907}
This commit is contained in:

committed by
Commit Bot

parent
2f061681cc
commit
327c43c29b
@ -90,6 +90,22 @@ void RtcpTransceiver::UnsetRemb() {
|
||||
});
|
||||
}
|
||||
|
||||
void RtcpTransceiver::SendNack(uint32_t ssrc,
|
||||
std::vector<uint16_t> sequence_numbers) {
|
||||
// TODO(danilchap): Replace with lambda with move capture when available.
|
||||
struct Closure {
|
||||
void operator()() {
|
||||
if (ptr)
|
||||
ptr->SendNack(ssrc, std::move(sequence_numbers));
|
||||
}
|
||||
|
||||
rtc::WeakPtr<RtcpTransceiverImpl> ptr;
|
||||
uint32_t ssrc;
|
||||
std::vector<uint16_t> sequence_numbers;
|
||||
};
|
||||
task_queue_->PostTask(Closure{ptr_, ssrc, std::move(sequence_numbers)});
|
||||
}
|
||||
|
||||
void RtcpTransceiver::SendPictureLossIndication(std::vector<uint32_t> ssrcs) {
|
||||
// TODO(danilchap): Replace with lambda with move capture when available.
|
||||
struct Closure {
|
||||
|
Reference in New Issue
Block a user