Avoid to close invalid audio input
This commit is contained in:
parent
863fdacffb
commit
4ce436b2f1
@ -136,10 +136,14 @@ void AudioInput::onStopRecording()
|
|||||||
readPromise_.reset();
|
readPromise_.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
ioDevice_->reset();
|
if(ioDevice_ != nullptr)
|
||||||
ioDevice_->disconnect();
|
{
|
||||||
|
ioDevice_->reset();
|
||||||
|
ioDevice_->disconnect();
|
||||||
|
ioDevice_ = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
audioInput_->stop();
|
audioInput_->stop();
|
||||||
ioDevice_ = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioInput::onReadyRead()
|
void AudioInput::onReadyRead()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user