stream.h: remove bad EOF check in stream_seek()

Also remove a redundant stream->eof = 0 in demuxer.c.
This commit is contained in:
Uoti Urpala 2010-05-21 20:53:12 +03:00
parent de42015a97
commit de5566f0b5
2 changed files with 0 additions and 3 deletions

View File

@ -243,7 +243,6 @@ demuxer_t *new_demuxer(struct MPOpts *opts, stream_t *stream, int type,
"big troubles ahead.");
if (filename) // Filename hack for avs_check_file
d->filename = strdup(filename);
stream->eof = 0;
stream_seek(stream, stream->start_pos);
return d;
}

View File

@ -289,8 +289,6 @@ inline static int stream_seek(stream_t *s,off_t pos){
mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%qX\n",(long long)pos);
if(s->eof)
return 0;
if(pos<s->pos){
off_t x=pos-(s->pos-s->buf_len);
if(x>=0){