audio: set push device to null when closing
Fixes crash trying to push samples after parameters change.
This commit is contained in:
@@ -79,6 +79,8 @@ void AudioOutputManager::Close()
|
||||
if (output_) {
|
||||
output_->stop();
|
||||
|
||||
push_device_ = nullptr;
|
||||
|
||||
if (device_proxy_.isOpen()) {
|
||||
device_proxy_.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user