• Max Kellermann's avatar
    output/alsa: check PCM state before calling snd_pcm_drain() · 543776d9
    Max Kellermann authored
    Apparently, if snd_pcm_drain() returns EAGAIN, it does not actually
    want to be called again; the next call will snd_pcm_drain() will also
    return EAGAIN, forever, even though the PCM state has meanwhile
    switched to SND_PCM_STATE_SETUP.  This causes a busy loop; to fix
    this, we should always check snd_pcm_state() to see if draining is
    really required.
    543776d9
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...