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/network.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavformat/network.h') diff --git a/libavformat/network.h b/libavformat/network.h index 99d96afda9..85b8f6dfc1 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -238,11 +238,14 @@ int ff_listen_bind(int fd, const struct sockaddr *addr, * @param timeout Polling timeout in milliseconds. * @param h URLContext providing interrupt check * callback and logging context. + * @param will_try_next Whether the caller will try to connect to another + * address for the same host name, affecting the form of + * logged errors. * @return 0 on success, AVERROR on failure. */ int ff_listen_connect(int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, - URLContext *h); + URLContext *h, int will_try_next); int ff_http_match_no_proxy(const char *no_proxy, const char *hostname); -- cgit v1.2.3