diff options
author | Derek Buitenhuis | 2016-04-21 16:01:47 +0100 |
---|---|---|
committer | Derek Buitenhuis | 2016-04-21 16:01:50 +0100 |
commit | 7e3d3a6a895f80e8a376a3ba37054eb84b44f671 (patch) | |
tree | 69b8694d440048f56ffc12a035425448c619779c | |
parent | ba2d37e9ada5239e4b856996136e4ee859863b16 (diff) | |
parent | 3ee2ec5ec1e39a438f89302d949c93a1b5d365a2 (diff) |
Merge commit '3ee2ec5ec1e39a438f89302d949c93a1b5d365a2'
* commit '3ee2ec5ec1e39a438f89302d949c93a1b5d365a2':
unix: Use rw_timeout for setting the connect timeout
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavformat/unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/unix.c b/libavformat/unix.c index 70d00ef47b..4f01d14a93 100644 --- a/libavformat/unix.c +++ b/libavformat/unix.c @@ -72,6 +72,9 @@ static int unix_open(URLContext *h, const char *filename, int flags) if ((fd = ff_socket(AF_UNIX, s->type, 0)) < 0) return ff_neterrno(); + if (s->timeout < 0 && h->rw_timeout) + s->timeout = h->rw_timeout / 1000; + if (s->listen) { ret = ff_listen_bind(fd, (struct sockaddr *)&s->addr, sizeof(s->addr), s->timeout, h); |