From 0d5e6084aed34a9e6f48a4a2cfaf095b17acb21b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Jun 2013 20:40:02 +0200 Subject: stream: don't set EOF flag in stream implementations EOF should be set when reading more data fails. The stream implementations have nothing to say here and should behave correctly when trying to read when EOF was actually read. Even when seeking, a correct EOF flag should be guaranteed. stream_seek() (or actually stream_seek_long()) calls stream_fill_buffer() at least once, which also updates the EOF flag. --- stream/stream_lavf.c | 1 - 1 file changed, 1 deletion(-) (limited to 'stream/stream_lavf.c') diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 4afdc7244d..2e97eac19d 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -60,7 +60,6 @@ static int seek(stream_t *s, int64_t newpos) return -1; s->pos = newpos; if (avio_seek(avio, s->pos, SEEK_SET) < 0) { - s->eof = 1; return 0; } return 1; -- cgit v1.2.3