fix(src/components/camera/Camera): reset correctly context info

This commit is contained in:
Ronan Abhamon 2017-04-04 09:34:53 +02:00
parent 3577df4498
commit fb81f7c640

View file

@ -55,10 +55,10 @@ CameraRenderer::~CameraRenderer () {
core->lockVideoRender();
memset(m_context_info, 0, sizeof *m_context_info);
m_update_context_info = true;
updateWindowId();
if (m_is_preview)
CoreManager::getInstance()->getCore()->setNativePreviewWindowId(nullptr);
else if (m_linphone_call)
m_linphone_call->setNativeVideoWindowId(nullptr);
core->unlockVideoRender();