music player daemon (fork)
Go to file
Max Kellermann 4cdcaa8630 output/alsa: don't call snd_pcm_drain() if nothing was written
Works around a problem where MPD goes into a busy loop because
snd_pcm_drain() always returns `-EAGAIN` without making any progress
(fixes #425).

This problem was triggered by snd_pcm_drain() after snd_pcm_cancel()
and snd_pcm_prepare(), but without submitting any data with
snd_pcm_writei().

I believe this is a kernel bug: in non-blocking mode, the kernel's
snd_pcm_drain() function returns early.  In this mode, it only checks
whether snd_pcm_drain_done() has been called already, but
snd_pcm_drain_done() is never called if no data was submitted.

In blocking mode, the following `for` loop detects this condition, so
snd_pcm_drain_done() is not necessary, but without this extra check,
we get `-EAGAIN` forever.
2018-11-16 12:49:37 +01:00
android increment version number to 0.21.3 2018-11-12 13:59:17 +01:00
build build with Meson instead of autotools 2018-10-14 23:41:38 +02:00
doc doc/protocol.rst: song position is 0-based 2018-11-15 12:34:23 +01:00
python/build python/build/libs.py: upgrade FFmpeg to 4.1 2018-11-14 11:50:51 +01:00
scripts scripts: delete obsolete scripts 2013-04-17 00:37:30 +02:00
src output/alsa: don't call snd_pcm_drain() if nothing was written 2018-11-16 12:49:37 +01:00
systemd build with Meson instead of autotools 2018-10-14 23:41:38 +02:00
test test/meson.build: run_storage depends on event lib 2018-11-15 19:01:43 +02:00
win32 win32/build.py: link libstdc++ and libcc statically 2018-11-04 11:10:00 +01:00
.gitignore remove some autotools remains 2018-11-02 18:55:49 +01:00
.travis.yml test: use GTest instead of cppunit 2018-10-16 21:26:04 +02:00
AUTHORS AUTHORS: add 0.21 contributors 2018-10-31 17:59:54 +01:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
meson_options.txt song/StringFilter: support regular expressions with "=~" and "!~" 2018-11-11 12:55:35 +01:00
meson.build increment version number to 0.21.3 2018-11-12 13:59:17 +01:00
mpd.svg import MPD SVG icon 2014-07-14 19:04:46 +02:00
NEWS output/alsa: drain the whole ring_buffer, not just one period 2018-11-14 13:35:17 +01:00
README.md release v0.20.7 2017-05-15 23:01:49 +02:00
valgrind.suppressions valgrind.suppressions: more library suppressions 2018-01-04 10:20:53 +01:00

Music Player Daemon

http://www.musicpd.org

A daemon for playing music of various formats. Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely.

For basic installation instructions read the manual.

Users

Developers

Legal

MPD is released under the GNU General Public License version 2, which is distributed in the COPYING file.