Commit acce59a7 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Fix RTprop overestimation due to off-by-one timestamp diff.

parent 5b1f5b0c
Pipeline #2051 failed with stages
in 21 seconds
......@@ -303,8 +303,6 @@ void *receive_data_loop(void *ptr) {
XlapTimeStampCycle(sock_ptr, kind, seqno, HandlePacketStart);
send_feedback(sock_ptr, remote, seqno, prrt_recv_timestamp, sentTimestamp, packetType);
if (packetType == PACKET_TYPE_DATA) {
handle_data_packet(sock_ptr, packet);
} else if (packetType == PACKET_TYPE_REDUNDANCY) {
......@@ -312,6 +310,7 @@ void *receive_data_loop(void *ptr) {
} else {
goto error;
}
send_feedback(sock_ptr, remote, seqno, prrt_recv_timestamp, sentTimestamp, packetType);
XlapTimeStampCycle(sock_ptr, kind, seqno, HandlePacketEnd);
} else {
PrrtPacket_print(packet);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment