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:
Wim Taymans 2014-01-21 15:24:52 +01:00
parent cf0c780138
commit 9a3d4d7cbe

View file

@ -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;