mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
rtpjitterbuffer: ensure rtx_retry_period >= 0
https://bugzilla.gnome.org/show_bug.cgi?id=739344
This commit is contained in:
parent
ad4480d534
commit
6daa57868f
1 changed files with 5 additions and 1 deletions
|
@ -2743,7 +2743,11 @@ get_rtx_retry_period (GstRtpJitterBufferPrivate * priv,
|
|||
if (priv->rtx_retry_period == -1) {
|
||||
/* we retry up to the configured jitterbuffer size but leaving some
|
||||
* room for the retransmission to arrive in time */
|
||||
rtx_retry_period = priv->latency_ns - rtx_retry_timeout;
|
||||
if (rtx_retry_timeout > priv->latency_ns) {
|
||||
rtx_retry_period = 0;
|
||||
} else {
|
||||
rtx_retry_period = priv->latency_ns - rtx_retry_timeout;
|
||||
}
|
||||
} else {
|
||||
rtx_retry_period = priv->rtx_retry_period * GST_MSECOND;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue