plugins/screencast: Stop frame rate throttling timer when stream is paused

Hypothetically, m_pendingFrame can be armed when the stream is paused.
It is undesired to call recordFrame() in that case.
This commit is contained in:
Vlad Zahorodnii 2024-06-03 14:08:11 +03:00
parent d048f9aad8
commit 01a9eb2327

View file

@ -128,6 +128,7 @@ void ScreenCastStream::onStreamStateChanged(pw_stream_state old, pw_stream_state
m_pwNodeId = pw_stream_get_node_id(m_pwStream);
Q_EMIT ready(nodeId());
}
m_pendingFrame.stop();
m_source->pause();
break;
case PW_STREAM_STATE_STREAMING: