rtpsouce: the network address is in network order
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 27 May 2009 09:03:14 +0000 (11:03 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 Aug 2009 01:30:45 +0000 (02:30 +0100)
Bring the network address in netowkr byte order to the host order.

gst/rtpmanager/rtpsource.c

index 355526e..ac79322 100644 (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,