]> git.sesse.net Git - ffmpeg/commitdiff
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 7fc3843b466d56c7c102b7d03c657641af120343..6af388b9b9bbef7b1c80f8c06d79b105272fcc8c 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));
     }