Fix a crash when a participant is leaving.

This commit is contained in:
Julien Wadel 2025-07-03 17:33:58 +02:00
parent 1ffe3dcc3e
commit 2cb9b54724

View file

@ -42,7 +42,7 @@ ConferenceListener::~ConferenceListener(){
// LINPHONE LISTENERS
//-----------------------------------------------------------------------------------------------------------------------
void ConferenceListener::onActiveSpeakerParticipantDevice(const std::shared_ptr<linphone::Conference> & conference, const std::shared_ptr<const linphone::ParticipantDevice> & participantDevice) {
qDebug() << "onActiveSpeakerParticipantDevice: " << participantDevice->getAddress()->asString().c_str();
qDebug() << "onActiveSpeakerParticipantDevice: " << (participantDevice ? participantDevice->getAddress()->asString().c_str() : " No active speaker");
emit activeSpeakerParticipantDevice(participantDevice);
}