udp: Provide additional information on getaddrinfo failure
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 24 Nov 2015 00:11:56 +0000 (01:11 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 25 Nov 2015 08:01:25 +0000 (09:01 +0100)
libavformat/udp.c

index 7fc3843..6af388b 100644 (file)
@@ -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));
     }