summaryrefslogtreecommitdiff
path: root/libavformat/unix.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-08-05 19:44:20 +0300
committerMartin Storsjö <martin@martin.st>2013-08-06 10:39:39 +0300
commitabe5268c3328bf0e8fcfb7dc6e231b8920177c3a (patch)
tree653381611587be59fbaf17994872adf58f353a4d /libavformat/unix.c
parent2a0ec47bd70ebb79e8b2d2f956feeb3a813df798 (diff)
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>
Diffstat (limited to 'libavformat/unix.c')
-rw-r--r--libavformat/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/unix.c b/libavformat/unix.c
index 95552a9a7b..ab57c68195 100644
--- a/libavformat/unix.c
+++ b/libavformat/unix.c
@@ -83,7 +83,7 @@ static int unix_open(URLContext *h, const char *filename, int flags)
}
} else {
ret = ff_listen_connect(fd, (struct sockaddr *)&s->addr,
- sizeof(s->addr), s->timeout, h);
+ sizeof(s->addr), s->timeout, h, 0);
if (ret < 0)
goto fail;
}