mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
localhost (the default host) couldnt get resolved
Original commit message from CVS: localhost (the default host) couldnt get resolved
This commit is contained in:
parent
bde15ed354
commit
5f9547b056
1 changed files with 4 additions and 2 deletions
|
@ -382,8 +382,10 @@ gst_udpsink_init_send (GstUDPSink *sink)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we dont need to lookup for localhost */
|
/* we dont need to lookup for localhost */
|
||||||
else if (strcmp (sink->host, UDP_DEFAULT_HOST) == 0) {
|
else if (strcmp (sink->host, UDP_DEFAULT_HOST) == 0 &&
|
||||||
sink->theiraddr.sin_addr = *((struct in_addr *) sink->host);
|
inet_aton ("127.0.0.1", &addr)) {
|
||||||
|
sink->theiraddr.sin_addr =
|
||||||
|
*((struct in_addr *) g_memdup (&addr, sizeof (addr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if its a hostname */
|
/* if its a hostname */
|
||||||
|
|
Loading…
Reference in a new issue