diff options
author | Max Kellermann <max@musicpd.org> | 2021-05-21 19:30:28 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-05-22 17:33:25 +0200 |
commit | 0e49de867de8b7f8793b4b628cfe4125c40459ec (patch) | |
tree | c0ea13cc7b9d82e101e20bd6945ca5ee3675d71d | |
parent | f2e452970741a47bc130ede0a96313b26f9df856 (diff) |
input/last: add nullptr check to Open(), fixes assertion failure
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1168
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/input/LastInputStream.hxx | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,5 @@ ver 0.22.8 (not yet released) +* fix crash bug in "albumart" command (0.22.7 regression) ver 0.22.7 (2021/05/19) * protocol diff --git a/src/input/LastInputStream.hxx b/src/input/LastInputStream.hxx index 2121772a0..635e87741 100644 --- a/src/input/LastInputStream.hxx +++ b/src/input/LastInputStream.hxx @@ -69,7 +69,8 @@ public: is = open(new_uri, mutex); uri = std::forward<U>(new_uri); - ScheduleClose(); + if (is) + ScheduleClose(); return is.get(); } |