From a32ac8ffe3f061cee5396364cf73ce565c130f3a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 16 Mar 2023 01:51:25 +0100 Subject: [PATCH] Make it quicker to cancel an analyse subtitle job (#2486). --- src/lib/analyse_subtitles_job.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/analyse_subtitles_job.cc b/src/lib/analyse_subtitles_job.cc index b41b65c3b..d8d258ea5 100644 --- a/src/lib/analyse_subtitles_job.cc +++ b/src/lib/analyse_subtitles_job.cc @@ -80,7 +80,9 @@ AnalyseSubtitlesJob::run () set_progress_unknown (); if (!content->text.empty()) { - while (!player->pass ()) {} + while (!player->pass ()) { + boost::this_thread::interruption_point(); + } } SubtitleAnalysis analysis (_bounding_box, content->text.front()->x_offset(), content->text.front()->y_offset()); -- 2.30.2