projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91eef69
)
rtpsouce: the network address is in network order
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 27 May 2009 09:03:14 +0000
(11:03 +0200)
committer
Tim-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
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/rtpsource.c
b/gst/rtpmanager/rtpsource.c
index
355526e
..
ac79322
100644
(file)
--- 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,