plugins/screencast: set frame timer to one shot

BUG: 469777
This commit is contained in:
Jay Paul 2024-01-30 23:22:44 -05:00 committed by Vlad Zahorodnii
parent 896a57d3be
commit 5ae170f1d6

View file

@ -333,6 +333,7 @@ ScreenCastStream::ScreenCastStream(ScreenCastSource *source, std::shared_ptr<Pip
_this->onStreamParamChanged(id, param);
};
m_pendingFrame.setSingleShot(true);
connect(&m_pendingFrame, &QTimer::timeout, this, [this] {
recordFrame(m_pendingDamages);
});