summaryrefslogtreecommitdiffstats
path: root/stream/stream_ffmpeg.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-04-23 21:19:50 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-04-23 21:19:50 +0300
commiteb48fefe94c0d03d22fdd0d7904e3d798f0b6a6c (patch)
tree77ffeebfb8ab7cf6ca8ea8ee805d615b42442024 /stream/stream_ffmpeg.c
parent19907b8fbc0c958750c51d2d39739f37a8565ea4 (diff)
downloadmpv-eb48fefe94c0d03d22fdd0d7904e3d798f0b6a6c.tar.bz2
mpv-eb48fefe94c0d03d22fdd0d7904e3d798f0b6a6c.tar.xz
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.
Diffstat (limited to 'stream/stream_ffmpeg.c')
-rw-r--r--stream/stream_ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;
}