diff options
author | Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com> | 2024-04-04 10:23:00 +0300 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-05-07 12:22:09 +0200 |
commit | bb7a485c0932375b888a61966970696c06851a15 (patch) | |
tree | 0bffd104d6360e229d605fc8b49fb0c07a8d0733 /sub/subassconvert.h | |
parent | 4e59a568963ba3a41d92d863786b88cb6ee17348 (diff) | |
download | mpv-bb7a485c0932375b888a61966970696c06851a15.tar.bz2 mpv-bb7a485c0932375b888a61966970696c06851a15.tar.xz |
stream: don't try to read from all-sparse/no-data files
```
dd if=/dev/zero of=/tmp/10g.empty bs=1 seek=10G count=0
dd if=/dev/zero of=/tmp/10m.empty bs=1 seek=10M count=0
time mpv /tmp/10{g,m}.empty
```
I keep files with the name format `${name}-${hash}.${ext}.empty`
around, where the original is removed, and a sparse file with
the size of the original is created instead.
A lot of time is wasted on such files when going through
playlists/directories that include some of them.
This admittedly may not be that common of a use-case.
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Diffstat (limited to 'sub/subassconvert.h')
0 files changed, 0 insertions, 0 deletions