Commit 17a6d4cd authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk

videowidget: fix the possible unreset pointer problem for distant and preview renderer

Change-Id: I3288aebe83c47258ae4dcbff18fe98440d96abb3
parent 4a551c97
......@@ -397,12 +397,14 @@ void
VideoWidget::slotStopFullView(const std::string& id)
{
QObject::disconnect(rendererConnections_.updated);
QObject::disconnect(rendererConnections_.stopped);
using namespace lrc::api::video;
if (id == PREVIEW_RENDERER_ID) {
previewRenderer_ = nullptr;
} else {
distantRenderer_ = nullptr;
}
repaint();
if (!previewRenderer_ && !distantRenderer_) {
QObject::disconnect(rendererConnections_.stopped);
repaint();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment