mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Fix refresh timer interval for camera rendering.
This commit is contained in:
parent
44fa997770
commit
c144deecc7
2 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ Camera::Camera (QQuickItem *parent) : QQuickFramebufferObject(parent) {
|
|||
setMirrorVertically(true);
|
||||
|
||||
mRefreshTimer = new QTimer(this);
|
||||
mRefreshTimer->setInterval(1 / MAX_FPS * 1000);
|
||||
mRefreshTimer->setInterval(1000 / MAX_FPS);
|
||||
|
||||
QObject::connect(
|
||||
mRefreshTimer, &QTimer::timeout,
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ CameraPreview::CameraPreview (QQuickItem *parent) : QQuickFramebufferObject(pare
|
|||
setMirrorVertically(true);
|
||||
|
||||
mRefreshTimer = new QTimer(this);
|
||||
mRefreshTimer->setInterval(1 / MAX_FPS * 1000);
|
||||
mRefreshTimer->setInterval(1000 / MAX_FPS);
|
||||
|
||||
QObject::connect(
|
||||
mRefreshTimer, &QTimer::timeout,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue