mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Don't play sound without an output
And avoid the division by 0 when getting garbage info about nonexistent output sources
This commit is contained in:
parent
c6220545c9
commit
cf52ff314f
|
@ -281,7 +281,7 @@ bool Audio::openOutput(const QString &outDevDescr)
|
|||
if (core)
|
||||
core->getAv()->resetCallSources(); // Force to regen each group call's sources
|
||||
|
||||
return true;
|
||||
return (bool)alOutDev;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user