diff --git a/src/core/coreav.cpp b/src/core/coreav.cpp index be67bb6e4..60ea46edc 100644 --- a/src/core/coreav.cpp +++ b/src/core/coreav.cpp @@ -556,7 +556,6 @@ bool CoreAV::sendGroupCallAudio(int groupId, const int16_t* pcm, size_t samples, uint32_t rate) const { QMutexLocker locker{&callsLock}; - assert(QThread::currentThread() == coreavThread.get()); std::map::const_iterator it = groupCalls.find(groupId); if (it == groupCalls.end()) { @@ -680,8 +679,6 @@ bool CoreAV::isCallOutputMuted(const Friend* f) const void CoreAV::sendNoVideo() { QMutexLocker locker{&callsLock}; - // This callback should come from the Core thread - assert(QThread::currentThread() != coreavThread.get()); // We don't change the audio bitrate, but we signal that we're not sending video anymore qDebug() << "CoreAV: Signaling end of video sending"; @@ -697,8 +694,6 @@ void CoreAV::callCallback(ToxAV* toxav, uint32_t friendNum, bool audio, bool vid CoreAV* self = static_cast(vSelf); QMutexLocker locker{&self->callsLock}; - // This callback should come from the Core thread - assert(QThread::currentThread() != self->coreavThread.get()); // Audio backend must be set before receiving a call assert(self->audio != nullptr); @@ -728,8 +723,6 @@ void CoreAV::stateCallback(ToxAV* toxav, uint32_t friendNum, uint32_t state, voi { Q_UNUSED(toxav); CoreAV* self = static_cast(vSelf); - // This callback should come from the Core thread - assert(QThread::currentThread() != self->coreavThread.get()); QMutexLocker locker{&self->callsLock};