diff options
author | wm4 <wm4@nowhere> | 2020-02-16 23:49:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-16 23:49:42 +0100 |
commit | 1a54339705f71a67faa900a125d467ba121e3ae6 (patch) | |
tree | 25e8436dbac7edfaedbbe7abd8f5812ed0ccf875 /player/scripting.c | |
parent | 27bf978e757346068d24cdf5f4ee9a7e0aec7d2a (diff) | |
download | mpv-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 'player/scripting.c')
0 files changed, 0 insertions, 0 deletions