summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-27 11:03:14 +0200
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:45 +0100
commitbf15048f4269176dd1cd5069c2d7dedf0a2a1007 (patch)
tree8bcead9b9f074fcdf459bdbb5cab4b08a6d898c9 /gst/rtpmanager
parent91eef691317bd6c44aefeaaa188e31ebdc297cec (diff)
rtpsouce: the network address is in network order
Bring the network address in netowkr byte order to the host order.
Diffstat (limited to 'gst/rtpmanager')
-rw-r--r--gst/rtpmanager/rtpsource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c
index 355526ee..ac79322c 100644
--- a/gst/rtpmanager/rtpsource.c
+++ b/gst/rtpmanager/rtpsource.c
@@ -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,