rtpsouce: the network address is in network order

Bring the network address in netowkr byte order to the host order.
This commit is contained in:
Wim Taymans 2009-05-27 11:03:14 +02:00
parent 0716d36b13
commit af89b6de1c

View file

@ -199,6 +199,7 @@ make_address_string (GstNetAddress * addr, gchar * dest, gulong n)
guint16 port;
gst_netaddress_get_ip4_address (addr, &address, &port);
address = g_ntohl (address);
g_snprintf (dest, n, "%d.%d.%d.%d:%d", (address >> 24) & 0xff,
(address >> 16) & 0xff, (address >> 8) & 0xff, address & 0xff,