diff options
author | wm4 <wm4@nowhere> | 2019-06-03 02:15:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | b9250569cdae1d31b728cfd8f5d7f7c8f41090d3 (patch) | |
tree | 5ded698df4b80380713dbcab5f5daae05f873ba3 /demux/demux_raw.c | |
parent | 60a0db39aa649fd3f76f6cb7ce53f0f9c3ab6eb4 (diff) | |
download | mpv-b9250569cdae1d31b728cfd8f5d7f7c8f41090d3.tar.bz2 mpv-b9250569cdae1d31b728cfd8f5d7f7c8f41090d3.tar.xz |
demux: fix assertion when switching tracks during backward playback
Someone who rams a knife into his own hand just to see what happens is
normally put in a psychiatric ward. But in software, this is acceptable
behavior. Programs are not supposed to crash just because a user did
something unreasonably dumb.
Switching tracks during backward playback is such a thing. It triggered
an assertion because the newly enabled stream was not properly
initialized for backward playback. Fix this, and make it actually work
(mostly; it still takes a "while" until playback recovers fully).
This actually makes some aspects of initialization slightly cleaner.
Diffstat (limited to 'demux/demux_raw.c')
0 files changed, 0 insertions, 0 deletions