projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d71783
)
Catch attempts to make a DCP when all content has been trimmed to zero length.
author
Carl Hetherington
<cth@carlh.net>
Fri, 29 Nov 2019 16:01:51 +0000
(17:01 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 29 Nov 2019 16:01:51 +0000
(17:01 +0100)
src/lib/film.cc
patch
|
blob
|
history
diff --git
a/src/lib/film.cc
b/src/lib/film.cc
index 82a00f4641d353ef9bae194cf70da595999795ab..f7fd96a01a35e4f405bb0f575ec9cb161092de03 100644
(file)
--- 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"));
}
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"));
}
if (dcp_content_type() == 0) {
throw MissingSettingError (_("content type"));
}