mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +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
0716d36b13
commit
af89b6de1c
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue