summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-09-29 02:35:41 +0200
committerwm4 <wm4@nowhere>2019-09-29 02:36:52 +0200
commit5a9046222b69c029586d8159ab551ea5283d9e47 (patch)
treeb4b93237cd6ee1b3ad688ff1dcc3271d54087671 /video
parenteb3aed7cf8be8d13aca65f19c5b0aff1ecd868fc (diff)
downloadmpv-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 'video')
0 files changed, 0 insertions, 0 deletions