From eb48fefe94c0d03d22fdd0d7904e3d798f0b6a6c Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 23 Apr 2010 21:19:50 +0300 Subject: stream_ffmpeg.c: change reads back to url_read_complete() Change reading data from FFmpeg from url_read() back to url_read_complete(). url_read_complete() behavior has changed in FFmpeg and no longer returns an error for partial reads at EOF so it's usable now. Using it is probably not significantly better than url_read(), but at least it handles EAGAIN. --- stream/stream_ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream_ffmpeg.c') diff --git a/stream/stream_ffmpeg.c b/stream/stream_ffmpeg.c index 37c0800369..30d63001d0 100644 --- a/stream/stream_ffmpeg.c +++ b/stream/stream_ffmpeg.c @@ -27,7 +27,7 @@ static int fill_buffer(stream_t *s, char *buffer, int max_len) { - int r = url_read(s->priv, buffer, max_len); + int r = url_read_complete(s->priv, buffer, max_len); return (r <= 0) ? -1 : r; } -- cgit v1.2.3