mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
stream.h: remove bad EOF check in stream_seek()
Also remove a redundant stream->eof = 0 in demuxer.c.
This commit is contained in:
parent
de42015a97
commit
de5566f0b5
@ -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;
|
||||
}
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user