kopia lustrzana https://gitlab.com/eliggett/wfview
Catch possible exception when closing non-existent stream
rodzic
e4ed41f3d3
commit
0bc3d6adfe
|
@ -27,7 +27,13 @@ audioHandler::~audioHandler()
|
|||
|
||||
|
||||
if (audio != Q_NULLPTR) {
|
||||
audio->abortStream();
|
||||
try {
|
||||
audio->abortStream();
|
||||
audio->closeStream();
|
||||
}
|
||||
catch (RtAudioError& e) {
|
||||
qInfo(logAudio()) << "Error closing stream:" << aParams.deviceId << ":" << QString::fromStdString(e.getMessage());
|
||||
}
|
||||
delete audio;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue