mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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:
parent
91eef69131
commit
bf15048f42
1 changed files with 1 additions and 0 deletions
|
@ -199,6 +199,7 @@ make_address_string (GstNetAddress * addr, gchar * dest, gulong n)
|
||||||
guint16 port;
|
guint16 port;
|
||||||
|
|
||||||
gst_netaddress_get_ip4_address (addr, &address, &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,
|
g_snprintf (dest, n, "%d.%d.%d.%d:%d", (address >> 24) & 0xff,
|
||||||
(address >> 16) & 0xff, (address >> 8) & 0xff, address & 0xff,
|
(address >> 16) & 0xff, (address >> 8) & 0xff, address & 0xff,
|
||||||
|
|
Loading…
Reference in a new issue