[FFmpeg-cvslog] udp: Provide additional information on getaddrinfo failure

Luca Barbato git at videolan.org
Sun Nov 29 16:12:55 CET 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Nov 24 01:11:56 2015 +0100| [12b14382861fbf19378afcddaa19cd9a949a86a3] | committer: Luca Barbato

udp: Provide additional information on getaddrinfo failure

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=12b14382861fbf19378afcddaa19cd9a949a86a3
---

 libavformat/udp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 7fc3843..6af388b 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));
     }
 



More information about the ffmpeg-cvslog mailing list