summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-27 11:03:14 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-05-27 11:03:14 +0200
commitaf89b6de1c08115ea4e31267de3c36b955ac079a (patch)
tree6f708711c54222b1a3071a199a41fb579f0dd293
parent0716d36b13bef1565af62a2d9b053936e03f1d10 (diff)
downloadgst-plugins-bad-af89b6de1c08115ea4e31267de3c36b955ac079a.tar.gz
gst-plugins-bad-af89b6de1c08115ea4e31267de3c36b955ac079a.tar.bz2
gst-plugins-bad-af89b6de1c08115ea4e31267de3c36b955ac079a.zip
rtpsouce: the network address is in network order
Bring the network address in netowkr byte order to the host order.
-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,