• Max Kellermann's avatar
    output/alsa: clear the `period_buffer` in LockCaughtError() · 3830748d
    Max Kellermann authored
    The method Cancel() assumes that the `period_buffer` must be empty
    when `active==false`, but that is not the case when Play() fails.
    
    Of course the assertion in Cancel() is not 100% correct, but I decided
    to rather fix this in LockCaughtError() because the `period_buffer`
    should only be accessed from within the RTIO thread, and this is the
    only code path where `active` can be set to `false` with a non-empty
    `period_buffer`.
    
    Fixes #423
    3830748d
Name
Last commit
Last update
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...