diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_lavf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index dd8af7cb47..85fa2a9be1 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -112,9 +112,7 @@ static int64_t mp_seek(void *opaque, int64_t pos, int whence) else if (whence == SEEK_SET) pos += stream->start_pos; else if (whence == AVSEEK_SIZE && stream->end_pos > 0) { - uint64_t size; - if (stream_control(stream, STREAM_CTRL_GET_SIZE, &size) == STREAM_OK) - return size; + stream_update_size(stream); return stream->end_pos - stream->start_pos; } else return -1; |