Skip to content
Snippets Groups Projects
Commit d02d62a2 authored by Nicolas Vengeon's avatar Nicolas Vengeon Committed by Sébastien Blin
Browse files

crash: segmentation fault in AvAdapter::OnRendererStarted

Change-Id: Ie04791adc2f914a2b12688488476aca8617ec0d3
parent a39e9e9f
Branches
Tags
No related merge requests found
...@@ -334,7 +334,10 @@ AvAdapter::onRendererStarted(const QString& id, const QSize& size) ...@@ -334,7 +334,10 @@ AvAdapter::onRendererStarted(const QString& id, const QSize& size)
// update renderer Information list // update renderer Information list
auto& avModel = lrcInstance_->avModel(); 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)); rendererInformationListModel_->addElement(qMakePair(id, rendererInfo));
auto callModel = lrcInstance_->getCurrentCallModel(); auto callModel = lrcInstance_->getCurrentCallModel();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment