mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-22 23:16:09 +00:00
FS-11750: don't shrink NACK table (vbw) so drastically (don't drop a frame with every added packet when complete_frames > max_frame_len)
This commit is contained in:
parent
32de076b18
commit
cfcb8b5d2f
@ -1251,8 +1251,11 @@ SWITCH_DECLARE(switch_status_t) switch_jb_put_packet(switch_jb_t *jb, switch_rtp
|
|||||||
|
|
||||||
add_node(jb, packet, len);
|
add_node(jb, packet, len);
|
||||||
|
|
||||||
if (switch_test_flag(jb, SJB_QUEUE_ONLY) && jb->complete_frames > jb->max_frame_len) {
|
if (switch_test_flag(jb, SJB_QUEUE_ONLY) && jb->max_packet_len
|
||||||
drop_oldest_frame(jb);
|
&& jb->allocated_nodes > jb->max_frame_len * 2 - 1) {
|
||||||
|
while ((jb->max_frame_len * 2 - jb->visible_nodes) < jb->max_packet_len) {
|
||||||
|
drop_oldest_frame(jb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_mutex_unlock(jb->mutex);
|
switch_mutex_unlock(jb->mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user