mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
stream: Compare IP addresses case insensitive in more places
https://bugzilla.gnome.org/show_bug.cgi?id=766612
This commit is contained in:
parent
f90ab92547
commit
f5f350645a
1 changed files with 3 additions and 2 deletions
|
@ -1827,7 +1827,8 @@ find_transport (GstRTSPStream * stream, const gchar * rtcp_from)
|
||||||
max = tr->client_port.max;
|
max = tr->client_port.max;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((strcmp (tr->destination, dest) == 0) && (min == port || max == port)) {
|
if ((g_ascii_strcasecmp (tr->destination, dest) == 0) &&
|
||||||
|
(min == port || max == port)) {
|
||||||
result = trans;
|
result = trans;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2621,7 +2622,7 @@ check_mcast_part_for_transport (GstRTSPStream * stream,
|
||||||
if (!mcast_addr)
|
if (!mcast_addr)
|
||||||
goto no_addr;
|
goto no_addr;
|
||||||
|
|
||||||
if (!g_str_equal (tr->destination, mcast_addr->address) ||
|
if (g_ascii_strcasecmp (tr->destination, mcast_addr->address) != 0 ||
|
||||||
tr->port.min != mcast_addr->port ||
|
tr->port.min != mcast_addr->port ||
|
||||||
tr->port.max != mcast_addr->port + mcast_addr->n_ports - 1 ||
|
tr->port.max != mcast_addr->port + mcast_addr->n_ports - 1 ||
|
||||||
tr->ttl != mcast_addr->ttl)
|
tr->ttl != mcast_addr->ttl)
|
||||||
|
|
Loading…
Reference in a new issue