output/control: add missing nullptr checks

Fixes crash when pausing the default partition after an output was
moved to another partition.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1147
This commit is contained in:
Max Kellermann
2021-04-26 21:33:51 +02:00
parent 650a30d794
commit b885f358a5
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@@ -9,6 +9,7 @@ ver 0.22.7 (not yet released)
* database
- simple: fix database corruption bug
* output
- fix crash when pausing with multiple partitions
- httpd: send header "Access-Control-Allow-Origin: *"
- wasapi: add algorithm for finding usable audio format
- wasapi: use default device only if none was configured