mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
address-pool: Fix off by one error
When splitting a port range, the port after a skip is not part of range.
This commit is contained in:
parent
82828852ee
commit
456f4367e3
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ split_range (GstRTSPAddressPool * pool, AddrRange * range, gint skip,
|
|||
if (skip > 0) {
|
||||
/* make a range with the skipped ports */
|
||||
temp = g_slice_dup (AddrRange, range);
|
||||
temp->max.port = temp->min.port + skip;
|
||||
temp->max.port = temp->min.port + skip - 1;
|
||||
/* and store back in pool */
|
||||
priv->addresses = g_list_prepend (priv->addresses, temp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue