Skip to content
Snippets Groups Projects
Commit 426c73a2 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

directrenderer: prevent multiple potential video crashes

Avoid deleting the frame buffer while it's being
accessed by daemon or another DirectRenderer wrapper.

Change-Id: I8c905d0fe274c9b546a7b3438b8a0cbddf67f456
parent 3880b1e5
No related branches found
No related tags found
No related merge requests found
/****************************************************************************
* Copyright (C) 2012-2021 Savoir-faire Linux Inc. *
/****************************************************************************
* Copyright (C) 2012-2021 Savoir-faire Linux Inc. *
* Author : Alexandre Lision <alexandre.lision@savoirfairelinux.com> *
* Author : Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> *
* *
......@@ -89,6 +89,7 @@ Video::DirectRenderer::DirectRenderer(const QString& id, const QSize& res, bool
/// Destructor
Video::DirectRenderer::~DirectRenderer()
{
QMutexLocker lk(mutex());
stopRendering();
d_ptr.reset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment