mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
f33501ad4b
commit
b3782442ae
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue