libavformat/network: use defined constant in poll

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Zhao Zhili 2016-01-27 11:00:17 +08:00 committed by Michael Niedermayer
parent 8fac0d6403
commit 1e2c262212

View File

@ -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);
}