diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-06 22:10:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-09 22:33:49 +0100 |
| commit | e6f2a4b0085b35be378f2cdd687146857d61df80 (patch) | |
| tree | 98bf0fe5057db49e1e58afc7769305264073b271 /src/tools/dcpomatic_player.cc | |
| parent | 951d70db4f81b5ddd4093f11853637c8ecbe63c5 (diff) | |
swaroop: support validity periods in ecinema KDMs.
Diffstat (limited to 'src/tools/dcpomatic_player.cc')
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 6a64bd0de..90cc818ca 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -287,6 +287,15 @@ public: } } +#ifdef DCPOMATIC_VARIANT_SWAROOP + BOOST_FOREACH (shared_ptr<Content> i, _film->content()) { + shared_ptr<FFmpegContent> c = dynamic_pointer_cast<FFmpegContent>(i); + if (c && !c->kdm_timing_window_valid()) { + ok = false; + } + } +#endif + if (!ok) { error_dialog (this, _("The KDM does not allow playback of this content at this time.")); } |
