From abe5268c3328bf0e8fcfb7dc6e231b8920177c3a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 5 Aug 2013 19:44:20 +0300 Subject: tcp: Use a different log message and level if there's more addresses to try MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This lowers the level of warnings printed if trying to connect to a host name that provides both v6 and v4 addresses but the service only is available on the v4 address (often occurring for 'localhost', with servers that aren't v6-aware). Signed-off-by: Martin Storsjö --- libavformat/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/tcp.c') diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 68bf9f10b1..39065aac7e 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -100,7 +100,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags) } } else { if ((ret = ff_listen_connect(fd, cur_ai->ai_addr, cur_ai->ai_addrlen, - timeout * 100, h)) < 0) { + timeout * 100, h, cur_ai->ai_next)) < 0) { if (ret == AVERROR_EXIT) goto fail1; -- cgit v1.2.3