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.
wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 529ccbbd18
commit 24f4e268a9
  1. 1
      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:

Loading…
Cancel
Save