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 committed by Tim-Philipp Müller
parent 91eef69131
commit bf15048f42

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,