audio: set push device to null when closing

Fixes crash trying to push samples after parameters change.
This commit is contained in:
itsmattkc
2021-04-08 08:20:13 +10:00
parent 603aa3c138
commit c023916d05
+2
View File
@@ -79,6 +79,8 @@ void AudioOutputManager::Close()
if (output_) {
output_->stop();
push_device_ = nullptr;
if (device_proxy_.isOpen()) {
device_proxy_.close();
}