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

View File

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