mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +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;
|
||||
|
||||
timer->duration = duration;
|
||||
if (timeout > expected_dts) {
|
||||
if (timeout > (expected_dts + timer->rtx_retry)) {
|
||||
GstClockTime delay = timeout - expected_dts - timer->rtx_retry;
|
||||
reschedule_timer (jitterbuffer, timer, timer->seqnum, expected_dts,
|
||||
delay, TRUE);
|
||||
|
|
Loading…
Reference in a new issue