mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
libavformat/network: use defined constant in poll
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8fac0d6403
commit
1e2c262212
@ -75,7 +75,7 @@ int ff_network_wait_fd(int fd, int write)
|
||||
int ev = write ? POLLOUT : POLLIN;
|
||||
struct pollfd p = { .fd = fd, .events = ev, .revents = 0 };
|
||||
int ret;
|
||||
ret = poll(&p, 1, 100);
|
||||
ret = poll(&p, 1, POLLING_TIME);
|
||||
return ret < 0 ? ff_neterrno() : p.revents & (ev | POLLERR | POLLHUP) ? 0 : AVERROR(EAGAIN);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user