1
0
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:
tux3 2015-11-07 22:24:08 +01:00
parent c6220545c9
commit cf52ff314f
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -281,7 +281,7 @@ bool Audio::openOutput(const QString &outDevDescr)
if (core) if (core)
core->getAv()->resetCallSources(); // Force to regen each group call's sources core->getAv()->resetCallSources(); // Force to regen each group call's sources
return true; return (bool)alOutDev;
} }
/** /**