mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
b2e7a7fa31
commit
765fce94b7
|
@ -295,12 +295,11 @@ void ToxGroupCall::removePeer(ToxPk peerId)
|
|||
void ToxGroupCall::addPeer(ToxPk peerId)
|
||||
{
|
||||
std::unique_ptr<IAudioSink> newSink = audio.makeSink();
|
||||
peers.emplace(peerId, std::move(newSink));
|
||||
|
||||
QMetaObject::Connection con =
|
||||
QObject::connect(newSink.get(), &IAudioSink::invalidated,
|
||||
[this, peerId]() { this->onAudioSinkInvalidated(peerId); });
|
||||
|
||||
peers.emplace(peerId, std::move(newSink));
|
||||
sinkInvalid.insert({peerId, con});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user