mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
tcp: Use a different log message and level if there's more addresses to try
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ö <martin@martin.st>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user