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:
parent
a8bf8ede01
commit
5d12f52873
1
NEWS
1
NEWS
|
@ -2,6 +2,7 @@ ver 0.21.3 (not yet released)
|
||||||
* output
|
* output
|
||||||
- alsa: fix crash bug
|
- alsa: fix crash bug
|
||||||
- alsa: fix stuttering at start of playback
|
- alsa: fix stuttering at start of playback
|
||||||
|
- alsa: clear error after reopening device
|
||||||
* log: default to journal if MPD was started as systemd service
|
* log: default to journal if MPD was started as systemd service
|
||||||
|
|
||||||
ver 0.21.2 (2018/11/12)
|
ver 0.21.2 (2018/11/12)
|
||||||
|
|
|
@ -673,6 +673,7 @@ AlsaOutput::Open(AudioFormat &audio_format)
|
||||||
|
|
||||||
active = false;
|
active = false;
|
||||||
must_prepare = false;
|
must_prepare = false;
|
||||||
|
error = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int
|
inline int
|
||||||
|
|
Loading…
Reference in New Issue