mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix call on null object, unititialized bool
This commit is contained in:
parent
9fdf382d7b
commit
4306f87df4
|
@ -156,7 +156,9 @@ void Audio::openInput(const QString& inDevDescr)
|
|||
else
|
||||
qDebug() << "Opening audio input "<<inDevDescr;
|
||||
|
||||
Core::getInstance()->resetCallSources(); // Force to regen each group call's sources
|
||||
Core* core = Core::getInstance();
|
||||
if (core)
|
||||
core->resetCallSources(); // Force to regen each group call's sources
|
||||
|
||||
// Restart the capture if necessary
|
||||
if (userCount.load() != 0 && alInDev)
|
||||
|
@ -210,7 +212,9 @@ void Audio::openOutput(const QString& outDevDescr)
|
|||
qDebug() << "Opening audio output " + outDevDescr;
|
||||
}
|
||||
|
||||
Core::getInstance()->resetCallSources(); // Force to regen each group call's sources
|
||||
Core* core = Core::getInstance();
|
||||
if (core)
|
||||
core->resetCallSources(); // Force to regen each group call's sources
|
||||
}
|
||||
|
||||
void Audio::closeInput()
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
ChatForm::ChatForm(Friend* chatFriend)
|
||||
: f(chatFriend)
|
||||
, callId(0)
|
||||
, callId{0}, isTyping{false}
|
||||
{
|
||||
nameLabel->setText(f->getDisplayedName());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user