localhost (the default host) couldnt get resolved

Original commit message from CVS:
localhost (the default host) couldnt get resolved
This commit is contained in:
Zeeshan Ali 2003-06-09 21:30:40 +00:00
parent bde15ed354
commit 5f9547b056

View file

@ -382,8 +382,10 @@ gst_udpsink_init_send (GstUDPSink *sink)
}
/* we dont need to lookup for localhost */
else if (strcmp (sink->host, UDP_DEFAULT_HOST) == 0) {
sink->theiraddr.sin_addr = *((struct in_addr *) sink->host);
else if (strcmp (sink->host, UDP_DEFAULT_HOST) == 0 &&
inet_aton ("127.0.0.1", &addr)) {
sink->theiraddr.sin_addr =
*((struct in_addr *) g_memdup (&addr, sizeof (addr)));
}
/* if its a hostname */