summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2015-03-20 13:03:09 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-03-25 15:25:56 -0400
commit12762ad1a52848577b3476c7cd8a3d4b825a0d75 (patch)
treea4f537b58d960f64fc12663abafc3a375a4c6cf8 /gst
parentd63c163335467caa58ce82521e5dc1a857a44c2f (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpmanager/gstrtpjitterbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c
index 999b24c71..c095920ba 100644
--- a/gst/rtpmanager/gstrtpjitterbuffer.c
+++ b/gst/rtpmanager/gstrtpjitterbuffer.c
@@ -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);