mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
fix(src/components/camera/Camera): coding style
This commit is contained in:
parent
906ec7402b
commit
4aebf1d309
1 changed files with 7 additions and 7 deletions
|
|
@ -51,16 +51,16 @@ CameraRenderer::CameraRenderer () {
|
|||
CameraRenderer::~CameraRenderer () {
|
||||
qInfo() << QStringLiteral("Delete context info:") << mContextInfo;
|
||||
|
||||
CoreManager *core = CoreManager::getInstance();
|
||||
CoreManager *coreManager = CoreManager::getInstance();
|
||||
|
||||
core->lockVideoRender();
|
||||
coreManager->lockVideoRender();
|
||||
|
||||
if (mIsPreview)
|
||||
CoreManager::getInstance()->getCore()->setNativePreviewWindowId(nullptr);
|
||||
coreManager->getCore()->setNativePreviewWindowId(nullptr);
|
||||
else if (mLinphoneCall)
|
||||
mLinphoneCall->setNativeVideoWindowId(nullptr);
|
||||
|
||||
core->unlockVideoRender();
|
||||
coreManager->unlockVideoRender();
|
||||
|
||||
delete mContextInfo;
|
||||
}
|
||||
|
|
@ -71,10 +71,10 @@ QOpenGLFramebufferObject *CameraRenderer::createFramebufferObject (const QSize &
|
|||
format.setInternalTextureFormat(GL_RGBA8);
|
||||
format.setSamples(4);
|
||||
|
||||
CoreManager *core = CoreManager::getInstance();
|
||||
CoreManager *coreManager = CoreManager::getInstance();
|
||||
|
||||
// It's not the same thread as render.
|
||||
core->lockVideoRender();
|
||||
coreManager->lockVideoRender();
|
||||
|
||||
mContextInfo->width = size.width();
|
||||
mContextInfo->height = size.height();
|
||||
|
|
@ -83,7 +83,7 @@ QOpenGLFramebufferObject *CameraRenderer::createFramebufferObject (const QSize &
|
|||
|
||||
updateWindowId();
|
||||
|
||||
core->unlockVideoRender();
|
||||
coreManager->unlockVideoRender();
|
||||
|
||||
return new QOpenGLFramebufferObject(size, format);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue