On Tue, Apr 05, 2011 at 09:29:40AM +0200, Luca Barbato wrote:
> Support the URL_FLAG_NONBLOCK semantic and uniform the protocol.
> The quick retry loop is already part of retry_transfer_wrapper.
>
> The polling routine is common to the network protocols:
> udp, tcp and, once merged, sctp.
> ---
> libavformat/network.h | 13 +++++++++++
> libavformat/tcp.c | 14 +----------
> libavformat/udp.c | 56 ++++++++++++++++--------------------------------
> 3 files changed, 34 insertions(+), 49 deletions(-)
>
> diff --git a/libavformat/network.h b/libavformat/network.h
> index 27bebb3..6943bc6 100644
> --- a/libavformat/network.h
> +++ b/libavformat/network.h
> @@ -55,6 +55,10 @@ static inline int ff_neterrno() {
> #include <arpa/inet.h>
> #endif
>
> +#if HAVE_POLL_H
> +#include <poll.h>
> +#endifMaybe now you can remove the poll.h #include from tcp.c and udp.c. Looks fine otherwise. -- Anton Khirnov
signature.asc
Description: Digital signature
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
