From e16109330d0e9e895b2cbb3890fcd1491a4e636b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 22 Oct 2021 12:43:46 +0200 Subject: [PATCH] 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 --- NEWS | 2 ++ src/input/LastInputStream.cxx | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ea141ba62..24db97b00 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.23.2 (not yet released) +* protocol + - fix "albumart" timeout bug * input - nfs: fix playback bug * output diff --git a/src/input/LastInputStream.cxx b/src/input/LastInputStream.cxx index e0829c122..ec7cf8a31 100644 --- a/src/input/LastInputStream.cxx +++ b/src/input/LastInputStream.cxx @@ -42,5 +42,6 @@ LastInputStream::OnCloseTimer() noexcept { assert(is); + uri.clear(); is.reset(); }