mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
rtpjitterbuffer: ignore invalid timestamps in rtt calculation
When the input buffer does not have a valid timestamp, don't try to calculate the round-trip-time.
This commit is contained in:
parent
cf0c780138
commit
9a3d4d7cbe
1 changed files with 1 additions and 1 deletions
|
@ -1841,7 +1841,7 @@ update_timers (GstRtpJitterBuffer * jitterbuffer, guint16 seqnum,
|
|||
/* calculate the delay between retransmission request and receiving this
|
||||
* packet, start with when we scheduled this timeout last */
|
||||
rtx_last = timer->rtx_last;
|
||||
if (dts > rtx_last) {
|
||||
if (dts != GST_CLOCK_TIME_NONE && dts > rtx_last) {
|
||||
/* we have a valid delay if this packet arrived after we scheduled the
|
||||
* request */
|
||||
delay = dts - rtx_last;
|
||||
|
|
Loading…
Reference in a new issue