mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtptwcc: fix pruning of ack'ed twcc-packets
Fixes #750 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/645>
This commit is contained in:
parent
0fcd87e42a
commit
e45cc475bd
1 changed files with 1 additions and 1 deletions
|
@ -750,7 +750,7 @@ _prune_sent_packets (RTPTWCCManager * twcc, GArray * twcc_packets)
|
|||
|
||||
last_idx = last->seqnum - first->seqnum;
|
||||
|
||||
if (last_idx >= twcc->sent_packets->len)
|
||||
if (last_idx < twcc->sent_packets->len)
|
||||
g_array_remove_range (twcc->sent_packets, 0, last_idx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue