@@ -232,6 +232,8 @@ void CaptureCont::handleSettingsUpdate(settings::type type, const QJsonDocument&
232232 auto videoCaptureInactiveTimeout = static_cast <std::chrono::milliseconds>(obj[" videoInactiveTimeout" ].toInt (DEFAULT_VIDEO_CAPTURE_INACTIVE_TIMEOUT.count ()) * 1000 );
233233 if (_videoInactiveTimer->intervalAsDuration () != videoCaptureInactiveTimeout)
234234 {
235+ qCDebug (capturectl_video_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - "
236+ << " Update video capture inactive timeout to" << std::chrono::duration_cast<std::chrono::seconds>(videoCaptureInactiveTimeout).count () << " s" ;
235237 _videoInactiveTimer->setInterval (videoCaptureInactiveTimeout);
236238 }
237239
@@ -245,6 +247,8 @@ void CaptureCont::handleSettingsUpdate(settings::type type, const QJsonDocument&
245247 auto screenCaptureInactiveTimeout = static_cast <std::chrono::milliseconds>(obj[" screenInactiveTimeout" ].toInt (DEFAULT_SCREEN_CAPTURE_INACTIVE_TIMEOUT.count ()) * 1000 );
246248 if (_screenCaptureInactiveTimer->intervalAsDuration () != screenCaptureInactiveTimeout)
247249 {
250+ qCDebug (capturectl_screen_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - "
251+ << " Update screen capture inactive timeout to" << std::chrono::duration_cast<std::chrono::seconds>(screenCaptureInactiveTimeout).count () << " s" ;
248252 _screenCaptureInactiveTimer->setInterval (screenCaptureInactiveTimeout);
249253 }
250254
@@ -258,6 +262,8 @@ void CaptureCont::handleSettingsUpdate(settings::type type, const QJsonDocument&
258262 auto audioCaptureInactiveTimeout = static_cast <std::chrono::milliseconds>(obj[" audioInactiveTimeout" ].toInt (DEFAULT_AUDIO_CAPTURE_INACTIVE_TIMEOUT.count ()) * 1000 );
259263 if (_audioCaptureInactiveTimer->intervalAsDuration () != audioCaptureInactiveTimeout)
260264 {
265+ qCDebug (capturectl_audio_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - "
266+ << " Update audio capture inactive timeout to" << std::chrono::duration_cast<std::chrono::seconds>(audioCaptureInactiveTimeout).count () << " s" ;
261267 _audioCaptureInactiveTimer->setInterval (audioCaptureInactiveTimeout);
262268 }
263269
@@ -285,18 +291,18 @@ void CaptureCont::handleCompStateChangeRequest(hyperion::Components component, b
285291
286292void CaptureCont::onVideoIsInactive () const
287293{
288- qCDebug (capturectl_video_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - Video capture identified as inactive" ;
294+ qCDebug (capturectl_video_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - Video capture identified as inactive after " << _videoInactiveTimer-> intervalAsDuration (). count () << " ms " ;
289295 _hyperionWeak.toStrongRef ()->setInputInactive (_videoCapturePriority);
290296}
291297
292298void CaptureCont::onScreenIsInactive () const
293299{
294- qCDebug (capturectl_screen_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - Screen capture identified as inactive" ;
300+ qCDebug (capturectl_screen_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - Screen capture identified as inactive after " << _screenCaptureInactiveTimer-> intervalAsDuration (). count () << " ms " ;
295301 _hyperionWeak.toStrongRef ()->setInputInactive (_screenCapturePriority);
296302}
297303
298304void CaptureCont::onAudioIsInactive () const
299305{
300- qCDebug (capturectl_audio_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - Audio capture identified as inactive" ;
306+ qCDebug (capturectl_audio_flow) << " Instance[" << _hyperionWeak.toStrongRef ()->getInstanceIndex () << " ] - Audio capture identified as inactive after " << _audioCaptureInactiveTimer-> intervalAsDuration (). count () << " ms " ;
301307 _hyperionWeak.toStrongRef ()->setInputInactive (_audioCapturePriority);
302308}
0 commit comments