зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1645127
- Copy MID from source packet to RTX packet; r=ng
This change is already present upstream. Differential Revision: https://phabricator.services.mozilla.com/D79548
This commit is contained in:
Родитель
dc86b9e146
Коммит
0b5eafd46f
|
@ -1281,6 +1281,14 @@ std::unique_ptr<RtpPacketToSend> RTPSender::BuildRtxPacket(
|
|||
rtx_packet->SetExtension<RepairedRtpStreamId>(rid);
|
||||
}
|
||||
}
|
||||
|
||||
// Copy mid from packet
|
||||
if (rtp_header_extension_map_.IsRegistered(kRtpExtensionMid)) {
|
||||
std::string mid;
|
||||
if (packet.GetExtension<RtpMid>(&mid)) {
|
||||
rtx_packet->SetExtension<RtpMid>(mid);
|
||||
}
|
||||
}
|
||||
}
|
||||
uint8_t* rtx_payload =
|
||||
rtx_packet->AllocatePayload(packet.payload_size() + kRtxHeaderSize);
|
||||
|
|
Загрузка…
Ссылка в новой задаче