[FFmpeg-devel] [PATCH] libavformat: Don't return errors if select is interrupted
Michael Niedermayer
michaelni
Fri Mar 26 00:18:28 CET 2010
On Fri, Mar 05, 2010 at 11:00:32AM +0200, Martin Storsj? wrote:
[...]
> diff --git a/libavformat/tcp.c b/libavformat/tcp.c
> index a8cf80f..20e8acb 100644
> --- a/libavformat/tcp.c
> +++ b/libavformat/tcp.c
> @@ -149,6 +149,8 @@ static int tcp_read(URLContext *h, uint8_t *buf, int size)
> return AVERROR(ff_neterrno());
> } else return len;
> } else if (ret < 0) {
> + if (ff_neterrno() == FF_NETERROR(EINTR))
> + continue;
> return -1;
> }
> }
should not many of these also check url_interrupt_cb() before continue?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100326/6e3e8143/attachment.pgp>
More information about the ffmpeg-devel
mailing list