mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
rtpjitterbuffer: If we have an immediate timeout, don't try to find an earlier timeout
If we have lots of such immediate timeouts, we would otherwise have quadratic runtime in the number of timeouts.
This commit is contained in:
parent
121fcbf7da
commit
0c21cd7177
1 changed files with 4 additions and 0 deletions
|
@ -3315,6 +3315,10 @@ wait_next_timeout (GstRtpJitterBuffer * jitterbuffer)
|
|||
GST_DEBUG_OBJECT (jitterbuffer, "new best %d", i);
|
||||
timer = test;
|
||||
timer_timeout = test_timeout;
|
||||
|
||||
/* Immediate timeout */
|
||||
if (test_timeout == -1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (timer && !priv->blocked) {
|
||||
|
|
Loading…
Reference in a new issue