network: Check POLLERR and POLLHUP in ff_network_wait_fd
authorGil Pedersen <gil@cmi.aau.dk>
Thu, 28 Apr 2011 07:27:40 +0000 (10:27 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 28 Apr 2011 07:28:51 +0000 (10:28 +0300)
commitf2c85458c411447f006f9c928cb198ec0260255a
tree002c958572da0e2aeba9f82982f7aaf2bc2a3e8c
parentf8fec0505294a4c05e5cfd9323e04258db465314
network: Check POLLERR and POLLHUP in ff_network_wait_fd

Previously, the function would lead to an infinite wait (by
returning AVERROR(EAGAIN)) on sockets indicating an error
via either of these poll flags.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/network.h