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);
|
: linphone::MediaDirection::SendOnly);
|
||||||
}
|
}
|
||||||
if (params->isValid()) {
|
if (params->isValid()) {
|
||||||
lInfo() << log()
|
if (mMonitor->getCall()) {
|
||||||
.arg("Toggling screen sharing %1, direction=%2")
|
mMonitor->getCall()->update(params);
|
||||||
.arg(enable)
|
lInfo() << log()
|
||||||
.arg((int)params->getVideoDirection());
|
.arg("Toggling screen sharing %1, direction=%2")
|
||||||
mMonitor->getCall()->update(params);
|
.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");
|
} else lCritical() << log().arg("Cannot toggle screen sharing because parameters are invalid");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue