MT#55283 set correct timestamp

Decoding and encoding may have taken some time. Grab an updated "now"
before scheduling a packet to send.

Change-Id: I9380cb01d77519cf082d87f3a6c6cfc18b8213f8
pull/1924/head
Richard Fuchs 8 months ago
parent 2c636fd1c1
commit 87106ef655

@ -2408,6 +2408,8 @@ void codec_output_rtp(struct media_packet *mp, struct codec_scheduler *csch,
long long ts_diff_us = 0; long long ts_diff_us = 0;
gettimeofday(&rtpe_now, NULL);
// ignore scheduling if a sequence number was supplied. in that case we're just doing // ignore scheduling if a sequence number was supplied. in that case we're just doing
// passthrough forwarding (or are handling some other prepared RTP stream) and want // passthrough forwarding (or are handling some other prepared RTP stream) and want
// to send the packet out immediately. // to send the packet out immediately.

Loading…
Cancel
Save