mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
cleanup audio out device on error after open
This commit is contained in:
parent
d631ddbc86
commit
d233c6f699
|
@ -313,7 +313,7 @@ bool Audio::initOutput(const QString& outDevDescr)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
qWarning() << "Cannot create output audio context";
|
qWarning() << "Cannot create output audio context";
|
||||||
alcCloseDevice(alOutDev);
|
cleanupOutput();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user