output/alsa: clear error after reopening device

When a playback error has occurred, MPD would never recover until one
restarts MPD.
This commit is contained in:
Max Kellermann 2018-11-14 13:20:54 +01:00
parent a8bf8ede01
commit 5d12f52873
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@ -2,6 +2,7 @@ ver 0.21.3 (not yet released)
* output
- alsa: fix crash bug
- alsa: fix stuttering at start of playback
- alsa: clear error after reopening device
* log: default to journal if MPD was started as systemd service
ver 0.21.2 (2018/11/12)

View File

@ -673,6 +673,7 @@ AlsaOutput::Open(AudioFormat &audio_format)
active = false;
must_prepare = false;
error = {};
}
inline int