stream: Compare IP addresses case insensitive in more places
authorXavier Claessens <xavier.claessens@collabora.com>
Wed, 7 Sep 2016 14:16:19 +0000 (10:16 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 7 Sep 2016 15:40:57 +0000 (18:40 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=766612

gst/rtsp-server/rtsp-stream.c

index 61ffa3e..c5722cd 100644 (file)
@@ -1827,7 +1827,8 @@ find_transport (GstRTSPStream * stream, const gchar * rtcp_from)
       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;
       break;
     }
@@ -2621,7 +2622,7 @@ check_mcast_part_for_transport (GstRTSPStream * stream,
   if (!mcast_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.max != mcast_addr->port + mcast_addr->n_ports - 1 ||
       tr->ttl != mcast_addr->ttl)