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:
parent
d048f9aad8
commit
01a9eb2327
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue