[FFmpeg-devel] [PATCH] remove loop in udp_read

aviad rozenhek aviadr1
Thu Sep 16 18:46:59 CEST 2010

The following line is truncated:

> +                return AVERROR(EG


> Apart from that, with your proposed change, what is ffmpeg supposed
> to do apart from blocking ? Busylooping ?
> -Alex

The patch takes the busyloop out of udp.c where it just looks weird,
and puts that busyloop where it is actually necessary: in aviobuf.c

the advantage of this approach, is that now udp.c can be used by users of
libav* (such as myself) in contexts where blocking IO is inappropriate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_udp_read_loop_2.diff
Type: text/x-patch
Size: 2054 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100916/3738181e/attachment.bin>

More information about the ffmpeg-devel mailing list