summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-16 23:49:42 +0100
committerwm4 <wm4@nowhere>2020-02-16 23:49:42 +0100
commit1a54339705f71a67faa900a125d467ba121e3ae6 (patch)
tree25e8436dbac7edfaedbbe7abd8f5812ed0ccf875 /stream
parent27bf978e757346068d24cdf5f4ee9a7e0aec7d2a (diff)
downloadmpv-1a54339705f71a67faa900a125d467ba121e3ae6.tar.bz2
mpv-1a54339705f71a67faa900a125d467ba121e3ae6.tar.xz
demux: only query stream size at most once per second
Instead of every packet. Doing it every packet led to the performance regression mentioned in the fstat() commit. This should now be over, but out of being careful, don't query the file size that often. This is only used for user interface things, so this should not cause any problems. For the sake of leaving the code compact, abuse another thing that is updated only every second (speed statistics).
Diffstat (limited to 'stream')
0 files changed, 0 insertions, 0 deletions