Removed sync packet support from NetEq.

I could not find a single place it was used, outside of the unittests
for the sync packet support itself.

Review-Url: https://codereview.webrtc.org/2309303002
Cr-Commit-Position: refs/heads/master@{#14130}
This commit is contained in:
ossu
2016-09-08 04:52:55 -07:00
committed by Commit bot
parent 2c993ce505
commit 17e3fa1fb4
7 changed files with 24 additions and 366 deletions

View File

@ -137,11 +137,6 @@ int PayloadSplitter::SplitFec(PacketList* packet_list,
LOG(LS_WARNING) << "SplitFec unknown payload type";
return kUnknownPayloadType;
}
// No splitting for a sync-packet.
if (packet->sync_packet) {
++it;
continue;
}
// Not an FEC packet.
AudioDecoder* decoder = decoder_database->GetDecoder(payload_type);
@ -169,7 +164,6 @@ int PayloadSplitter::SplitFec(PacketList* packet_list,
new_packet->header.timestamp -= duration;
new_packet->payload.SetData(packet->payload);
new_packet->primary = false;
new_packet->sync_packet = packet->sync_packet;
// Waiting time should not be set here.
RTC_DCHECK(!packet->waiting_time);
@ -231,11 +225,6 @@ int PayloadSplitter::SplitAudio(PacketList* packet_list,
LOG(LS_WARNING) << "SplitAudio unknown payload type";
return kUnknownPayloadType;
}
// No splitting for a sync-packet.
if (packet->sync_packet) {
++it;
continue;
}
PacketList new_packets;
switch (info->codec_type) {
case NetEqDecoder::kDecoderPCMu: