summaryrefslogtreecommitdiffstats
path: root/DOCS/man/vf.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-16 16:03:03 +0100
committerwm4 <wm4@nowhere>2020-02-16 16:03:03 +0100
commit74a2c0fb7f61ded74b1a66baff61783907433efa (patch)
tree45dfbf186dd2f2f4b6f0b9f7e786913ac042a928 /DOCS/man/vf.rst
parenta19d918816866180a4ddc8be371dfb8b9394fc28 (diff)
downloadmpv-stream_size_fstat.tar.bz2
mpv-stream_size_fstat.tar.xz
stream_file: use fstat() instead of lseek() to determine file sizestream_size_fstat
It appears using lseek() to seek to the end and back to determine file size is inefficient in some cases (like with CIFS, see #7408). Even Windows supports fstat() (well, almost, but we already have a wrapper), so use that. It's unknown whether that will work better. Although I like it more, because it doesn't mess with the file position.
Diffstat (limited to 'DOCS/man/vf.rst')
0 files changed, 0 insertions, 0 deletions