diff options
author | wm4 <wm4@nowhere> | 2013-06-06 20:40:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-16 22:05:10 +0200 |
commit | 0d5e6084aed34a9e6f48a4a2cfaf095b17acb21b (patch) | |
tree | 8513c329707016173c6b482961cf721b81b5bfc7 /stream/stream_dvb.c | |
parent | 1c35794efd7d025457e527b61f7c23fe375c2f5a (diff) | |
download | mpv-0d5e6084aed34a9e6f48a4a2cfaf095b17acb21b.tar.bz2 mpv-0d5e6084aed34a9e6f48a4a2cfaf095b17acb21b.tar.xz |
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.
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r-- | stream/stream_dvb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 3fa1b289a0..40c27f9aac 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -541,7 +541,6 @@ int dvb_set_channel(stream_t *stream, int card, int n) stream->buf_pos = stream->buf_len = 0; stream->pos = 0; - stream->eof = 0; if(channel->freq != priv->last_freq) if (! dvb_tune(priv, channel->freq, channel->pol, channel->srate, channel->diseqc, channel->tone, |