• Max Kellermann's avatar
    output/alsa: add a new flag "waiting" for xrun management · 0c0a3547
    Max Kellermann authored
    In DispatchSockets(), when there was not enough data, but enough for
    current playback, the method would disable the "active" flag so the
    next Play() call would re-enable the MultiSocketMonitor.
    
    This was an abuse of the flag which could result in a crash
    in Cancel(), because that method asserts that the period_buffer is
    empty, which it may be not.
    
    The solution is to add anther flag called "waiting" which shares some
    behavior with the old flag.
    0c0a3547
Name
Last commit
Last update
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build 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...