diff options
author | wm4 <wm4@nowhere> | 2019-06-13 19:33:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 95c97cd66e2fd2e79565d1ef563a19ad6d96b071 (patch) | |
tree | 8b329bb78ccafa52ebd9814fb612965baa8a33eb /demux/demux_timeline.c | |
parent | 17da9071a4a524139e2ef945ed6cde17dd08c99c (diff) | |
download | mpv-95c97cd66e2fd2e79565d1ef563a19ad6d96b071.tar.bz2 mpv-95c97cd66e2fd2e79565d1ef563a19ad6d96b071.tar.xz |
demux: disable backward demuxing if it fatally fails
We don't care much about this case, because backward playback can fail
terribly without a good way to detect it, so this was fine.
However, this froze in certain situations. Reading from a subtitle file
for which backward demuxing failed could make it get stuck in
demux_read_packet_async() in unthreaded mode. (That we don't support
backwards subtitle decoding anyway doesn't matter for this.)
So aggressively disable backward demuxing to prevent worse in these
situations. The behavior will still be awful, because the frontend is
still in backwards playback mode, but at least it won't freeze.
Diffstat (limited to 'demux/demux_timeline.c')
0 files changed, 0 insertions, 0 deletions