projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it quicker to cancel an analyse subtitle job (#2486).
[dcpomatic.git]
/
src
/
lib
/
analyse_subtitles_job.cc
diff --git
a/src/lib/analyse_subtitles_job.cc
b/src/lib/analyse_subtitles_job.cc
index b41b65c3ba2872dfdd39290b2671b59bc64eb9ee..d8d258ea54962af1d86c198242302690744feecb 100644
(file)
--- 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()) {
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());
}
SubtitleAnalysis analysis (_bounding_box, content->text.front()->x_offset(), content->text.front()->y_offset());