From 35e453919768df2df5f65db23cffe26b5195ae3a Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Fri, 22 Nov 2024 14:37:41 +0000 Subject: [PATCH] Tweak: Extra logs in playout buffer on error/success --- src/driver/tasks/udp_rx/playout_buffer.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/driver/tasks/udp_rx/playout_buffer.rs b/src/driver/tasks/udp_rx/playout_buffer.rs index 6ea37f829..9265b9f7a 100644 --- a/src/driver/tasks/udp_rx/playout_buffer.rs +++ b/src/driver/tasks/udp_rx/playout_buffer.rs @@ -158,7 +158,6 @@ impl PlayoutBuffer { if ts_diff >= 0 { // At or before expected timestamp. self.next_seq = (rtp.get_sequence() + 1).0; - PacketLookup::Packet(pkt) } else if ts_diff <= -skip_after { // >5 playouts ahead. @@ -166,7 +165,12 @@ impl PlayoutBuffer { *curr_ts = pkt_ts; PacketLookup::Packet(pkt) } else { - trace!("Witholding packet: ts_diff is {ts_diff}"); + trace!( + "Withholding packet({}): ts_diff is {ts_diff}.\ + Expected >={curr_ts}, have {pkt_ts} (seq {}).", + rtp.get_ssrc(), + rtp.get_sequence().0, + ); self.buffer.push_front(Some(pkt)); self.playout_mode = PlayoutMode::Fill; PacketLookup::Filling