1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-04-21 21:52:03 +02:00

crash: segmentation fault in AvAdapter::OnRendererStarted

Change-Id: Ie04791adc2f914a2b12688488476aca8617ec0d3
This commit is contained in:
Nicolas 2023-01-12 10:19:35 -05:00 committed by Sébastien Blin
parent a39e9e9f39
commit d02d62a2fe

View file

@ -334,7 +334,10 @@ AvAdapter::onRendererStarted(const QString& id, const QSize& size)
// update renderer Information list
auto& avModel = lrcInstance_->avModel();
auto rendererInfo = avModel.getRenderersInfo(id)[0];
auto rendererInfoList = avModel.getRenderersInfo(id);
if (rendererInfoList.isEmpty())
return;
auto rendererInfo = rendererInfoList.first();
rendererInformationListModel_->addElement(qMakePair(id, rendererInfo));
auto callModel = lrcInstance_->getCurrentCallModel();