Skip to content
Snippets Groups Projects
Commit fdb0a981 authored by Pierre Lamot's avatar Pierre Lamot Committed by Steve Lhomme
Browse files

qt: fix window destroyed before the vout window in DComp compositor

parent fc0325db
No related branches found
No related tags found
No related merge requests found
Pipeline #561299 passed with stage
in 5 minutes and 14 seconds
......@@ -337,13 +337,20 @@ void CompositorDirectComposition::destroyMainInterface()
msg_Err(m_intf, "video surface still active while destroying main interface");
commonIntfDestroy();
m_quickView.reset();
}
void CompositorDirectComposition::unloadGUI()
{
m_acrylicSurface.reset();
m_interfaceWindowHandler.reset();
m_quickView.reset();
//at this point we need to unload the QML content but the window still need to
//be valid as it may still be used by the vout window.
//we cant' just delete the qmlEngine as the QmlView as the root item is parented to the QmlView
//setSource() to nothing will effectively destroy the root item
m_quickView->setSource(QUrl());
commonGUIDestroy();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment