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.
This commit is contained in:
Wim Taymans 2008-06-13 11:47:28 +00:00
parent ab58eeec2e
commit 5b751d0290
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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),

View file

@ -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;