diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-29 17:01:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-29 17:01:51 +0100 |
| commit | b69813dd682c8a0c3b7c46287b1a75c7c10f6a10 (patch) | |
| tree | cd956f44564a3ce87d9a65d5d908d854b09a8c8d | |
| parent | 3d717831cb3b91064fc6d261fa0d94d548d9bd6a (diff) | |
Catch attempts to make a DCP when all content has been trimmed to zero length.
| -rw-r--r-- | src/lib/film.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 82a00f464..f7fd96a01 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -320,6 +320,10 @@ Film::make_dcp (bool gui, bool check) throw runtime_error (_("You must add some content to the DCP before creating it")); } + if (length() == DCPTime()) { + throw runtime_error (_("The DCP is empty, perhaps because all the content has zero length.")); + } + if (dcp_content_type() == 0) { throw MissingSettingError (_("content type")); } |
