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:
parent
356543ca3b
commit
afcd146a5b
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user