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

fix(groupaudio): avoid deadlock when ending groupcall

The offending statement caused a deadlock, because the audioLock was
locked twice by the audio thread.
This commit is contained in:
sudden6 2016-04-23 22:14:54 +02:00
parent 356543ca3b
commit afcd146a5b
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -440,10 +440,9 @@ bool CoreAV::sendGroupCallAudio(int groupId, const int16_t *pcm, size_t samples,
ToxGroupCall& call = groupCalls[groupId];
if (call.inactive || call.muteMic || !Audio::getInstance().isInputReady())
if (call.inactive || call.muteMic)
return true;
if (toxav_group_send_audio(toxav_get_tox(toxav), groupId, pcm, samples, chans, rate) != 0)
qDebug() << "toxav_group_send_audio error";