From cc14550eb27e46a3789a8278aa2095345d36ed6d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 17 Mar 2021 16:35:26 +0100 Subject: Hint about out-of-range markers (#1920). --- src/lib/hints.cc | 13 +++++++++++++ src/lib/hints.h | 1 + 2 files changed, 14 insertions(+) (limited to 'src/lib') diff --git a/src/lib/hints.cc b/src/lib/hints.cc index 32accdd02..96a9c88ec 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -333,6 +333,18 @@ subtitle_mxf_too_big (shared_ptr asset) } +void +Hints::check_out_of_range_markers () +{ + auto const length = film()->length(); + for (auto const& i: film()->markers()) { + if (i.second >= length) { + hint (_("At least one marker comes after the end of the project and will be ignored.")); + } + } +} + + void Hints::thread () { @@ -355,6 +367,7 @@ Hints::thread () check_3d_in_2d (); check_loudness (); check_ffec_and_ffmc_in_smpte_feature (); + check_out_of_range_markers (); emit (bind(boost::ref(Progress), _("Examining closed captions"))); diff --git a/src/lib/hints.h b/src/lib/hints.h index d070dc201..c13ad22a4 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -71,6 +71,7 @@ private: void check_3d_in_2d (); void check_loudness (); void check_ffec_and_ffmc_in_smpte_feature (); + void check_out_of_range_markers (); boost::thread _thread; /** This is used to make a partial DCP containing only the subtitles and closed captions that -- cgit v1.2.3