Note that newer libsub version is required.
[dcpomatic.git] / src / lib / analyse_subtitles_job.cc
index b41b65c3ba2872dfdd39290b2671b59bc64eb9ee..b41990db5f738dcfc5aad537a96b359861a4948d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "analyse_subtitles_job.h"
 #include "bitmap_text.h"
+#include "film.h"
 #include "image.h"
 #include "player.h"
 #include "playlist.h"
@@ -80,7 +81,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());