input/last: clear "uri" in OnCloseTimer()

Without clearing the "uri" field, the next Open() call attempts to
reuse the old InputStream, but it has already been closed, so Open()
always returns nullptr.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1300
This commit is contained in:
Max Kellermann 2021-10-22 12:43:46 +02:00
parent 72621531e0
commit e16109330d
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.23.2 (not yet released)
* protocol
- fix "albumart" timeout bug
* input
- nfs: fix playback bug
* output

View File

@ -42,5 +42,6 @@ LastInputStream::OnCloseTimer() noexcept
{
assert(is);
uri.clear();
is.reset();
}