diff options
author | wm4 <wm4@nowhere> | 2014-10-25 17:11:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-25 17:20:18 +0200 |
commit | aaa29eb81e0388b9173223290b6b15f619caa7ab (patch) | |
tree | 6df8dc69447a363a2d31d2203e181ef0aa346a92 /common/tags.c | |
parent | 1e919b4c124de6308528fdc7468d7212d309a1d6 (diff) | |
download | mpv-aaa29eb81e0388b9173223290b6b15f619caa7ab.tar.bz2 mpv-aaa29eb81e0388b9173223290b6b15f619caa7ab.tar.xz |
stream: fix --stream-dump dropping the file header
stream_rar.c peeks the first few bytes when trying to open, which means
that opening any stream reads at least 2KB of data (internal buffer
size) on opening. This broke --stream-dump, which saved only the data
following this initial buffer.
Hack it around by writing the current buffer to the capture file too,
and move stream_capture_write() above stream_set_capture_file() for this
purpose.
Cleaner solutions might include: handling the terrible rar thing
differently, or using the "proper" stream API for dumping. (The latter
is not done, because --stream-dump shares code with the --stream-capture
misfeature.)
Fixes #1215.
Diffstat (limited to 'common/tags.c')
0 files changed, 0 insertions, 0 deletions