platforms/drm: only delete outputs if not pre-existing
When there aren't enough CRTCs to drive all the outputs this could delete existing outputs.
This commit is contained in:
parent
b89f04943c
commit
a0a98d0b31
1 changed files with 4 additions and 2 deletions
|
@ -340,8 +340,10 @@ bool DrmGpu::commitCombination(const QVector<DrmPipeline *> &pipelines)
|
|||
return true;
|
||||
} else {
|
||||
for (const auto &pipeline : qAsConst(pipelines)) {
|
||||
Q_EMIT outputDisabled(pipeline->output());
|
||||
delete pipeline->output();
|
||||
if (!m_outputs.contains(pipeline->output())) {
|
||||
Q_EMIT outputDisabled(pipeline->output());
|
||||
delete pipeline->output();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue