From 19a6277841c5dcc52036631c51af321c7541e7e7 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 16 Sep 2023 23:46:54 +0200 Subject: [PATCH] Enable use of throttling for "has changed" checks. --- src/macro-external/video/macro-condition-video.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/macro-external/video/macro-condition-video.cpp b/src/macro-external/video/macro-condition-video.cpp index 27b8525e..5756e745 100644 --- a/src/macro-external/video/macro-condition-video.cpp +++ b/src/macro-external/video/macro-condition-video.cpp @@ -104,7 +104,9 @@ static bool requiresFileInput(VideoCondition t) bool MacroConditionVideo::CheckShouldBeSkipped() { if (_condition != VideoCondition::PATTERN && - _condition != VideoCondition::OBJECT) { + _condition != VideoCondition::OBJECT && + _condition != VideoCondition::HAS_CHANGED && + _condition != VideoCondition::HAS_NOT_CHANGED) { return false; } @@ -1452,7 +1454,9 @@ static bool needsShowMatch(VideoCondition cond) static bool needsThrottleControls(VideoCondition cond) { return cond == VideoCondition::PATTERN || - cond == VideoCondition::OBJECT; + cond == VideoCondition::OBJECT || + cond == VideoCondition::HAS_CHANGED || + cond == VideoCondition::HAS_NOT_CHANGED; } static bool needsThreshold(VideoCondition cond)