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:
Danil Chapovalov
2017-11-27 17:23:04 +01:00
committed by Commit Bot
parent 2f061681cc
commit 327c43c29b
7 changed files with 64 additions and 2 deletions

View File

@ -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 {