mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
fix crash when no call associated to conference
This commit is contained in:
parent
cef5a85d63
commit
1fddae5deb
1 changed files with 10 additions and 5 deletions
|
|
@ -154,11 +154,16 @@ void ConferenceModel::toggleScreenSharing() {
|
|||
: linphone::MediaDirection::SendOnly);
|
||||
}
|
||||
if (params->isValid()) {
|
||||
lInfo() << log()
|
||||
.arg("Toggling screen sharing %1, direction=%2")
|
||||
.arg(enable)
|
||||
.arg((int)params->getVideoDirection());
|
||||
mMonitor->getCall()->update(params);
|
||||
if (mMonitor->getCall()) {
|
||||
mMonitor->getCall()->update(params);
|
||||
lInfo() << log()
|
||||
.arg("Toggling screen sharing %1, direction=%2")
|
||||
.arg(enable)
|
||||
.arg((int)params->getVideoDirection());
|
||||
} else {
|
||||
lCritical() << log().arg(
|
||||
"Cannot toggle screen sharing because call associated to this conference is null");
|
||||
}
|
||||
} else lCritical() << log().arg("Cannot toggle screen sharing because parameters are invalid");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue