From 757cee21259f32cfe6a42af31768cafed8f7fe6f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 14 Dec 2021 09:56:39 -0500 Subject: [PATCH] TT#136957 correctly schedule send-now RTP packets Change-Id: Ie96324329dae131f24784916911189dd8cf3d6b8 --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index f781411e8..1b04adcb4 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1583,7 +1583,7 @@ static void __output_rtp(struct media_packet *mp, struct codec_ssrc_handler *ch, if (ts_diff_us > 1000000 || ts_diff_us < -1000000) // more than one second, can't be right ch->first_send.tv_sec = 0; // fix it up below } - if (!ch->first_send.tv_sec) { + if (!ch->first_send.tv_sec || !p->ttq_entry.when.tv_sec) { p->ttq_entry.when = ch->first_send = rtpe_now; ch->first_send_ts = ts; }