diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-26 22:58:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-27 00:48:38 +0100 |
| commit | a5dd7e1b70911288e7a3ba6ad43e72982aba2b9f (patch) | |
| tree | 5389c87f805bb58fb5f872760c3a5ef8950535f2 /src/lib/hints.cc | |
| parent | f1dfe9f2666c171ccaf5fc06c4e2395dda807e89 (diff) | |
Use new signal handling for Hints.
Diffstat (limited to 'src/lib/hints.cc')
| -rw-r--r-- | src/lib/hints.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index cf385216e..27835aed2 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -410,11 +410,11 @@ Hints::scan_content(shared_ptr<const Film> film) } if (check_loudness_done && have_text) { - emit(boost::bind(boost::ref(Progress), _("Examining subtitles and closed captions"))); + Progress(_("Examining subtitles and closed captions")); } else if (!check_loudness_done && !have_text) { - emit(boost::bind(boost::ref(Progress), _("Examining audio"))); + Progress(_("Examining audio")); } else { - emit(boost::bind(boost::ref(Progress), _("Examining audio, subtitles and closed captions"))); + Progress(_("Examining audio, subtitles and closed captions")); } auto player = make_shared<Player>(film, Image::Alignment::COMPACT, false); @@ -441,7 +441,7 @@ Hints::scan_content(shared_ptr<const Film> film) if (_stop) { return; } - emit(boost::bind(boost::ref(Pulse))); + Pulse(); last_pulse = now; } } @@ -535,7 +535,7 @@ try } dcp::filesystem::remove_all(dcp_dir); - emit(boost::bind(boost::ref(Finished))); + Finished(); } catch (boost::thread_interrupted) { @@ -544,14 +544,14 @@ catch (boost::thread_interrupted) catch (...) { store_current(); - emit(boost::bind(boost::ref(Finished))); + Finished(); } void Hints::hint(string h) { - emit(boost::bind(boost::ref(Hint), h)); + Hint(h); } |
