diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-11-24 01:11:56 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-11-25 09:01:25 +0100 |
commit | 12b14382861fbf19378afcddaa19cd9a949a86a3 (patch) | |
tree | 60023d12856a403d3f55add1e649073c7e988355 | |
parent | 34af7813f77e2b5b9dcb34f20bcf53bfcc0ba9c9 (diff) | |
download | ffmpeg-12b14382861fbf19378afcddaa19cd9a949a86a3.tar.gz |
udp: Provide additional information on getaddrinfo failure
-rw-r--r-- | libavformat/udp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 7fc3843b46..6af388b9b9 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -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)); } |