From ac3801761ebf6da65887d1f2705222cc0c1c6424 Mon Sep 17 00:00:00 2001 From: evgeny Date: Thu, 15 Oct 2026 02:29:34 +0200 Subject: [PATCH] Keep video latency diagnostics within their clock domains --- src/call/call_video_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/call/call_video_transport.c b/src/call/call_video_transport.c index 08c477e4..76798ea4 100644 --- a/src/call/call_video_transport.c +++ b/src/call/call_video_transport.c @@ -149,10 +149,10 @@ static void update_rate(struct call_video_transport *v) { if (now - v->report_us >= 1000000) { DEBUG_DEBUG(DEBUG_CATEGORY_CALL, "video TX flow call=%llu offered=%u accepted=%u audio_busy=%u transport_busy=%u key_wait=%u " - "audio_ahead_us=%lld held=%d queue=%u bytes=%u audio_age_us=%lld queue_age_us=%llu tail_ahead_us=%lld", + "audio_ahead_us=%lld held=%d queue=%u bytes=%u audio_pts=%lld queue_age_us=%llu tail_ahead_us=%lld", (unsigned long long)s->call_id, v->offered, v->accepted, v->held_busy, v->transport_busy, v->key_wait, (long long)v->max_audio_ahead, held, v->tx_count, v->tx_bytes, - (long long)(v->audio_end_pts >= 0 ? (int64_t)now - v->audio_end_pts : 0), + (long long)v->audio_end_pts, (unsigned long long)(v->tx_count ? (get_time_tb() - v->tx[0].started_tb) * 100 : 0), (long long)(v->tx_count && v->audio_end_pts >= 0 ? v->tx[v->tx_count - 1].frame.pts_us - v->audio_end_pts : 0)); v->report_us = now; v->offered = v->accepted = v->held_busy = v->transport_busy = v->key_wait = 0; v->max_audio_ahead = 0;