From 61217e034bf04b36d328a9cb73ebbd2abf5e0649 Mon Sep 17 00:00:00 2001 From: q Date: Wed, 3 Sep 2025 14:32:18 +0300 Subject: [PATCH] if parsing takes long, quit if requested --- tsmark/video_annotator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tsmark/video_annotator.py b/tsmark/video_annotator.py index c5eae57..7347862 100755 --- a/tsmark/video_annotator.py +++ b/tsmark/video_annotator.py @@ -988,7 +988,7 @@ class World: def interpolate_points_in_thread(self): - self.points_interpolation_frequency = 1 + self.points_interpolation_frequency = 0.5 while True: if self.points_interpolation_thread_exit: @@ -998,6 +998,8 @@ class World: continue for point_index in self.points_interpolation_required: + if self.points_interpolation_thread_exit: + return if self.get_interpolation_required(point_index): self.interpolate_points(point_index)