1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

open output device on "subscribeInput" only when not already opened

This commit is contained in:
Nils Fenner 2015-10-25 00:56:41 +02:00
parent 46b3ba2631
commit e2966b1457
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -140,7 +140,9 @@ void Audio::subscribeInput()
if (!inputSubscriptions++)
{
openInput(Settings::getInstance().getInDev());
openOutput(Settings::getInstance().getOutDev());
if (!alOutDev)
openOutput(Settings::getInstance().getOutDev());
#if (!FIX_SND_PCM_PREPARE_BUG)
if (alInDev)