mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
udp: Provide additional information on getaddrinfo failure
This commit is contained in:
parent
34af7813f7
commit
12b1438286
@ -192,7 +192,9 @@ static struct addrinfo *udp_resolve_host(URLContext *h,
|
||||
hints.ai_flags = flags;
|
||||
if ((error = getaddrinfo(node, service, &hints, &res))) {
|
||||
res = NULL;
|
||||
av_log(h, AV_LOG_ERROR, "udp_resolve_host: %s\n",
|
||||
av_log(h, AV_LOG_ERROR, "getaddrinfo(%s, %s): %s\n",
|
||||
node ? node : "unknown",
|
||||
service ? service : "unknown",
|
||||
gai_strerror(error));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user