From 24f4e268a91db997bfbcafe9edb860eb53edb583 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 25 Apr 2024 13:54:18 +0300 Subject: [PATCH] plugins/screencast: Reset last sent timestamp when the stream resumes Hypothetically, if the stream is paused and restarted in a short burst, the frame throttling logic can be mis-triggered. --- src/plugins/screencast/screencaststream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index a75f75f707..12d5bcc2a9 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -90,6 +90,7 @@ void ScreenCastStream::onStreamStateChanged(pw_stream_state old, pw_stream_state break; case PW_STREAM_STATE_STREAMING: m_streaming = true; + m_lastSent = QDateTime(); m_source->resume(); break; case PW_STREAM_STATE_CONNECTING: