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:
parent
46b3ba2631
commit
e2966b1457
|
@ -140,8 +140,10 @@ void Audio::subscribeInput()
|
||||||
if (!inputSubscriptions++)
|
if (!inputSubscriptions++)
|
||||||
{
|
{
|
||||||
openInput(Settings::getInstance().getInDev());
|
openInput(Settings::getInstance().getInDev());
|
||||||
|
if (!alOutDev)
|
||||||
openOutput(Settings::getInstance().getOutDev());
|
openOutput(Settings::getInstance().getOutDev());
|
||||||
|
|
||||||
|
|
||||||
#if (!FIX_SND_PCM_PREPARE_BUG)
|
#if (!FIX_SND_PCM_PREPARE_BUG)
|
||||||
if (alInDev)
|
if (alInDev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user