mirror of https://github.com/mpv-player/mpv
stream: remove eof getter
demux_mkv was the only thing using this, and everything else accessed it directly. No need to keep the indirection wrapper around. (Funny how this getter was in the initial commit of MPlayer.)
This commit is contained in:
parent
8a0929973d
commit
12d1761064
|
@ -2137,7 +2137,7 @@ static int demux_mkv_read_block_lacing(struct block_info *block, int type,
|
|||
uint8_t t;
|
||||
do {
|
||||
t = stream_read_char(s);
|
||||
if (stream_eof(s) || stream_tell(s) >= endpos)
|
||||
if (s->eof || stream_tell(s) >= endpos)
|
||||
goto error;
|
||||
lace_size[i] += t;
|
||||
} while (t == 0xFF);
|
||||
|
|
|
@ -188,11 +188,6 @@ inline static int stream_read_char(stream_t *s)
|
|||
|
||||
int stream_skip_bom(struct stream *s);
|
||||
|
||||
inline static int stream_eof(stream_t *s)
|
||||
{
|
||||
return s->eof;
|
||||
}
|
||||
|
||||
inline static int64_t stream_tell(stream_t *s)
|
||||
{
|
||||
return s->pos + s->buf_cur - s->buf_end;
|
||||
|
|
Loading…
Reference in New Issue