mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 11:17:11 +01:00
Fixed freeze when removing the recorder
This commit is contained in:
parent
646fe4fd02
commit
034ada1ed7
@ -106,6 +106,7 @@ public:
|
|||||||
// Stop recording
|
// Stop recording
|
||||||
if (recording) { stopRecording(); }
|
if (recording) { stopRecording(); }
|
||||||
|
|
||||||
|
vol.setInput(&dummyStream);
|
||||||
if (audioInput != NULL) { sigpath::sinkManager.unbindStream(selectedStreamName, audioInput); }
|
if (audioInput != NULL) { sigpath::sinkManager.unbindStream(selectedStreamName, audioInput); }
|
||||||
|
|
||||||
sigpath::sinkManager.onStreamRegistered.unbindHandler(&streamRegisteredHandler);
|
sigpath::sinkManager.onStreamRegistered.unbindHandler(&streamRegisteredHandler);
|
||||||
@ -418,8 +419,8 @@ private:
|
|||||||
if (name != _this->selectedStreamName) { return; }
|
if (name != _this->selectedStreamName) { return; }
|
||||||
if (_this->recording) { _this->stopRecording(); }
|
if (_this->recording) { _this->stopRecording(); }
|
||||||
if (_this->audioInput != NULL) {
|
if (_this->audioInput != NULL) {
|
||||||
sigpath::sinkManager.unbindStream(_this->selectedStreamName, _this->audioInput);
|
|
||||||
_this->vol.setInput(&_this->dummyStream);
|
_this->vol.setInput(&_this->dummyStream);
|
||||||
|
sigpath::sinkManager.unbindStream(_this->selectedStreamName, _this->audioInput);
|
||||||
_this->audioInput = NULL;
|
_this->audioInput = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user