diff options
author | wm4 <wm4@nowhere> | 2015-01-14 22:14:20 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:19 +0900 |
commit | 371b52e377b74dd16a40f6a418ef72355f303e72 (patch) | |
tree | 31187fc1a3ce3f42061625d37ff3537c42b7f2c3 /talloc.h | |
parent | d8152b7003258fa2017b93cb855285f65c97ac1b (diff) | |
download | mpv-371b52e377b74dd16a40f6a418ef72355f303e72.tar.bz2 mpv-371b52e377b74dd16a40f6a418ef72355f303e72.tar.xz |
player: fallback to seek time for percent-pos property
The percent-pos property normally goes by time, except for file formats
like .ts or .ogg, where you can't trust the timestamps and duration info
to compute the position in the overall files. These use the byte
position and size instead.
When the file position was unavailable (e.g. due to an ongoing seek),
the percent-pos was unknown. Change it to use the time position instead.
In most cases, it's actually accurate enough, and the temporary
unavailability of the property can be annoying, e.g. on the terminal
status line.
Diffstat (limited to 'talloc.h')
0 files changed, 0 insertions, 0 deletions