backends/drm: fix crash with direct scanout
BUG: 447079
This commit is contained in:
parent
1d0e75bc5c
commit
dde7a2efac
1 changed files with 3 additions and 1 deletions
|
@ -624,7 +624,9 @@ bool EglGbmBackend::scanout(AbstractOutput *drmOutput, SurfaceItem *surfaceItem)
|
|||
return false;
|
||||
}
|
||||
if (output.oldScanoutCandidate && output.oldScanoutCandidate != surface) {
|
||||
output.oldScanoutCandidate->dmabufFeedbackV1()->setTranches({});
|
||||
if (output.oldScanoutCandidate->dmabufFeedbackV1()) {
|
||||
output.oldScanoutCandidate->dmabufFeedbackV1()->setTranches({});
|
||||
}
|
||||
output.oldScanoutCandidate = nullptr;
|
||||
}
|
||||
output.scanoutCandidate = surface;
|
||||
|
|
Loading…
Reference in a new issue