diff options
author | wm4 <wm4@nowhere> | 2019-09-29 02:35:41 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-29 02:36:52 +0200 |
commit | 5a9046222b69c029586d8159ab551ea5283d9e47 (patch) | |
tree | b4b93237cd6ee1b3ad688ff1dcc3271d54087671 /stream/stream_dvdnav.c | |
parent | eb3aed7cf8be8d13aca65f19c5b0aff1ecd868fc (diff) | |
download | mpv-5a9046222b69c029586d8159ab551ea5283d9e47.tar.bz2 mpv-5a9046222b69c029586d8159ab551ea5283d9e47.tar.xz |
demux: make --record-file/cache dump command work with disabled streams
This passed all streams to mp_recorder_create(), even disabled ones. The
disabled streams never get packets, so recorder.c eventually errors out
with unrelated-looking errors. The reason is that recorder.c waits for
packets to appear on other streams, which in turn is because libavformat
refuses to mux empty streams anyway.
recorder.c could call demux_stream_is_selected(), which would have made
the patch much smaller. But this feels like a bad idea, since recorder.c
should use sh_stream only for metadata (and not in an "active" way), nor
should it care what demux.c is currently doing with it. So make the API
user (demux.c) pass only the streams it really wants.
Fixes: #6999
Diffstat (limited to 'stream/stream_dvdnav.c')
0 files changed, 0 insertions, 0 deletions