diff options
author | wm4 <wm4@nowhere> | 2013-11-18 13:45:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-18 14:20:59 +0100 |
commit | 8f1151a00edf3aac78baa6779284eede3e9ee872 (patch) | |
tree | b68ed8dddb5e0aa5342bfb9d86eee9a7a976d3f5 /mpvcore/mp_msg.c | |
parent | b78d11d3282b118287901bd4f9a220880e27084b (diff) | |
download | mpv-8f1151a00edf3aac78baa6779284eede3e9ee872.tar.bz2 mpv-8f1151a00edf3aac78baa6779284eede3e9ee872.tar.xz |
audio: fix mid-stream audio reconfiguration
Commit 22b3f522 not only redid major aspects of audio decoding, but also
attempted to fix audio format change handling. Before that commit, data
that was already decoded but not yet filtered was thrown away on a
format change. After that commit, data was supposed to finish playing
before rebuilding filters and so on.
It was still buggy, though: the decoder buffer was initialized to the
new format too early, triggering an assertion failure. Move the reinit
call below filtering to fix this.
ad_mpg123.c needs to be adjusted so that it doesn't decode new data
before the format change is actually executed.
Add some more assertions to af_play() (audio filtering) to make sure
input data and configured format don't mismatch. This will also catch
filters which don't set the format on their output data correctly.
Regression due to planar_audio branch.
Diffstat (limited to 'mpvcore/mp_msg.c')
0 files changed, 0 insertions, 0 deletions