Index: webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc b/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc |
index 47534e480e561078f0961bfd326351edb18b4539..a365fcbec43e938f6b97667e6801c64ca75684c9 100644 |
--- a/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc |
+++ b/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc |
@@ -132,9 +132,11 @@ bool FlexfecReceiver::ProcessReceivedPackets() { |
continue; |
} |
++packet_counter_.num_recovered_packets; |
+ // Set this flag first, since OnRecoveredPacket may end up here |
brandtr
2017/05/16 08:19:39
I'll look into why this is the case.
|
+ // again, with the same packet. |
+ recovered_packet->returned = true; |
recovered_packet_receiver_->OnRecoveredPacket( |
recovered_packet->pkt->data, recovered_packet->pkt->length); |
- recovered_packet->returned = true; |
// Periodically log the incoming packets. |
int64_t now_ms = clock_->TimeInMilliseconds(); |
if (now_ms - last_recovered_packet_ms_ > kPacketLogIntervalMs) { |