mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
rtpjitter: Account for rtx_retry in overflow check
As rtx_retry is part of the substraction, we need to take it into account, otherwise we may endup with a big value.
This commit is contained in:
parent
d63c163335
commit
12762ad1a5
1 changed files with 1 additions and 1 deletions
|
@ -2063,7 +2063,7 @@ calculate_expected (GstRtpJitterBuffer * jitterbuffer, guint32 expected,
|
||||||
GstClockTime timeout = timer->timeout;
|
GstClockTime timeout = timer->timeout;
|
||||||
|
|
||||||
timer->duration = duration;
|
timer->duration = duration;
|
||||||
if (timeout > expected_dts) {
|
if (timeout > (expected_dts + timer->rtx_retry)) {
|
||||||
GstClockTime delay = timeout - expected_dts - timer->rtx_retry;
|
GstClockTime delay = timeout - expected_dts - timer->rtx_retry;
|
||||||
reschedule_timer (jitterbuffer, timer, timer->seqnum, expected_dts,
|
reschedule_timer (jitterbuffer, timer, timer->seqnum, expected_dts,
|
||||||
delay, TRUE);
|
delay, TRUE);
|
||||||
|
|
Loading…
Reference in a new issue