udpsrc: fix getaddrinfo error reporting

getaddrinfo errors should be reported with gai_strerror instead of errno as
spotted by MikeS.
This commit is contained in:
Wim Taymans 2009-04-25 09:43:38 +02:00 committed by Wim Taymans
parent f33501ad4b
commit b3782442ae

View file

@ -917,7 +917,7 @@ gst_udpsrc_start (GstBaseSrc * bsrc)
getaddrinfo_error:
{
GST_ELEMENT_ERROR (src, RESOURCE, SETTINGS, (NULL),
("getaddrinfo failed %d: %s (%d)", ret, g_strerror (errno), errno));
("getaddrinfo failed: %s (%d)", gai_strerror (ret), ret));
return FALSE;
}
no_socket: