From f8dfbedbd1fd9ed4e271b20511f9c7a5b50387e1 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 15 Mar 2024 19:09:57 +0700 Subject: [PATCH] reduce missing video pipelines log spam --- xpra/server/window/window_video_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpra/server/window/window_video_source.py b/xpra/server/window/window_video_source.py index bfc202e8bb..a924809fcc 100644 --- a/xpra/server/window/window_video_source.py +++ b/xpra/server/window/window_video_source.py @@ -1807,7 +1807,7 @@ def setup_pipeline(self, scores : Tuple, width : int, height : int, src_format : raise RuntimeError(f"invalid dimensions: {width}x{height}") start = monotonic() if not scores: - if not self.is_cancelled(): + if not self.is_cancelled() and first_time(f"no-scores-{src_format}-{self.wid}"): videolog.error("Error: no video pipeline options found for %s %i-bit at %ix%i", src_format, self.image_depth, width, height) return False @@ -2345,7 +2345,7 @@ def do_video_encode(self, encoding : str, image : ImageWrapper, options : Dict) videolog.error(" encoders CSC modes: %s", csv(ecsc)) if FORCE_CSC: videolog.error(" forced csc mode: %s", FORCE_CSC_MODE) - return self.video_fallback(image, options, warn=True) + return self.video_fallback(image, options) ve = self._video_encoder if not ve: return self.video_fallback(image, options, warn=True)