diff options
author | wm4 <wm4@nowhere> | 2019-06-07 13:36:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | b45c17e5a91476bf8a7293343fca3c8dc4761481 (patch) | |
tree | 0481f39875adcda75a740ad1ac235ff96bb0c5ca /demux | |
parent | 46247df6e55bf9a93588c5adfdc553c1d189b2fc (diff) | |
download | mpv-b45c17e5a91476bf8a7293343fca3c8dc4761481.tar.bz2 mpv-b45c17e5a91476bf8a7293343fca3c8dc4761481.tar.xz |
m_option: add "B" suffix to human-readable byte numbers
The conversion to string as the pretty printer returns it is
sometimes used on OSD. I think it's pretty odd that quantities below 1
KB are shown as number without suffix. So use "B" for them.
For orthogonality, allow the same for parsing. (Although strictly
speaking, this is not a requirement of the option API. Option parsers
don't need to accept pretty-printed strings.)
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions