summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-06-13 11:47:28 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-06-13 11:47:28 +0000
commit5b751d02901fd672973d411d153820fc33f40508 (patch)
treeabfea1908cc25d135404678ec19da36525f9fe3f
parentab58eeec2e835bd46020b4a085144a81ba442f5a (diff)
gst/udp/gstudpnetutils.c: Use g_ntohl for better portability.
Original commit message from CVS: * gst/udp/gstudpnetutils.c: (gst_udp_is_multicast): Use g_ntohl for better portability.
-rw-r--r--ChangeLog5
-rw-r--r--gst/udp/gstudpnetutils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8046a946..cdb2dddf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-06-13 Wim Taymans <wim.taymans@collabora.co.uk>
+ * gst/udp/gstudpnetutils.c: (gst_udp_is_multicast):
+ Use g_ntohl for better portability.
+
+2008-06-13 Wim Taymans <wim.taymans@collabora.co.uk>
+
* gst/udp/gstmultiudpsink.c: (gst_multiudpsink_init_send),
(gst_multiudpsink_remove):
Fix a typo and do some small cleanups.
diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c
index 5464ddac..58e11bdb 100644
--- a/gst/udp/gstudpnetutils.c
+++ b/gst/udp/gstudpnetutils.c
@@ -230,7 +230,7 @@ gst_udp_is_multicast (struct sockaddr_storage *addr)
{
struct sockaddr_in *addr4 = (struct sockaddr_in *) addr;
- ret = IN_MULTICAST (ntohl (addr4->sin_addr.s_addr));
+ ret = IN_MULTICAST (g_ntohl (addr4->sin_addr.s_addr));
}
break;