diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-17 16:35:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-17 16:35:26 +0100 |
| commit | cc14550eb27e46a3789a8278aa2095345d36ed6d (patch) | |
| tree | 3e9a284dcaab92c7bf2e0132f00b4605fa4edac1 /src/lib | |
| parent | 9911663f3edd47eddde43b00d20f7b718bac786b (diff) | |
Hint about out-of-range markers (#1920).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/hints.cc | 13 | ||||
| -rw-r--r-- | src/lib/hints.h | 1 |
2 files changed, 14 insertions, 0 deletions
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 @@ -334,6 +334,18 @@ subtitle_mxf_too_big (shared_ptr<dcp::SubtitleAsset> 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 () { auto film = _film.lock (); @@ -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 |
