conference: initSources after setting state

Change-Id: Idc5416f9db85502874f07dfa84e3eb159a4c50eb
This commit is contained in:
Adrien Béraud
2025-04-01 22:08:44 -04:00
parent 001b13103b
commit 9d53375028

View File

@ -970,8 +970,8 @@ Conference::detachHost()
return; return;
} }
initSourcesForHost();
setState(State::ACTIVE_DETACHED); setState(State::ACTIVE_DETACHED);
initSourcesForHost();
} }
CallIdSet CallIdSet
@ -1569,7 +1569,7 @@ Conference::muteLocalHost(bool is_muted, const std::string& mediaType)
} else if (mediaType.compare(libjami::Media::Details::MEDIA_TYPE_VIDEO) == 0) { } else if (mediaType.compare(libjami::Media::Details::MEDIA_TYPE_VIDEO) == 0) {
#ifdef ENABLE_VIDEO #ifdef ENABLE_VIDEO
if (not isVideoEnabled()) { if (not isVideoEnabled()) {
JAMI_ERR("Unable to stop camera, the camera is disabled!"); JAMI_ERROR("Unable to stop camera, the camera is disabled!");
return; return;
} }
@ -1837,7 +1837,6 @@ void
Conference::bindSubCallAudio(const std::string& callId) Conference::bindSubCallAudio(const std::string& callId)
{ {
JAMI_LOG("Bind participant {} to conference {}", callId, id_); JAMI_LOG("Bind participant {} to conference {}", callId, id_);
auto& rbPool = Manager::instance().getRingBufferPool(); auto& rbPool = Manager::instance().getRingBufferPool();
// Bind each of the new participant's audio streams to each of the other participants audio streams // Bind each of the new participant's audio streams to each of the other participants audio streams