mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
rtsp-stream: Compare IP address strings case insensitive
Otherwise IPv6 addresses might fail this comparision.
This commit is contained in:
parent
e5a49efa7f
commit
d33eca6156
1 changed files with 4 additions and 3 deletions
|
@ -1056,7 +1056,7 @@ gst_rtsp_stream_reserve_address (GstRTSPStream * stream,
|
||||||
/* FIXME: Also reserve the same port with unicast ANY address, since that's
|
/* FIXME: Also reserve the same port with unicast ANY address, since that's
|
||||||
* where we are going to bind our socket. */
|
* where we are going to bind our socket. */
|
||||||
} else {
|
} else {
|
||||||
if (strcmp ((*addrp)->address, address) ||
|
if (g_ascii_strcasecmp ((*addrp)->address, address) ||
|
||||||
(*addrp)->port != port || (*addrp)->n_ports != n_ports ||
|
(*addrp)->port != port || (*addrp)->n_ports != n_ports ||
|
||||||
(*addrp)->ttl != ttl)
|
(*addrp)->ttl != ttl)
|
||||||
goto different_address;
|
goto different_address;
|
||||||
|
@ -1082,8 +1082,9 @@ no_address:
|
||||||
}
|
}
|
||||||
different_address:
|
different_address:
|
||||||
{
|
{
|
||||||
GST_ERROR_OBJECT (stream, "address %s is not the same that was already"
|
GST_ERROR_OBJECT (stream,
|
||||||
" reserved", address);
|
"address %s is not the same as %s that was already" " reserved",
|
||||||
|
address, (*addrp)->address);
|
||||||
g_mutex_unlock (&priv->lock);
|
g_mutex_unlock (&priv->lock);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue