projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7fa260
)
Don't crash when checking a DCP with no subtitles in some reel.
author
Carl Hetherington
<cth@carlh.net>
Mon, 25 Dec 2023 00:12:49 +0000
(
01:12
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 4 Jan 2024 22:35:43 +0000
(23:35 +0100)
src/lib/dcp_content.cc
patch
|
blob
|
history
diff --git
a/src/lib/dcp_content.cc
b/src/lib/dcp_content.cc
index 8d27406fe1cc4917eae28173b6aa79829d28a976..b9b64149f1984832f200806be88c413eaf0fb235 100644
(file)
--- a/
src/lib/dcp_content.cc
+++ b/
src/lib/dcp_content.cc
@@
-747,7
+747,7
@@
DCPContent::can_reference_text (shared_ptr<const Film> film, TextType type, stri
for (auto i: decoder->reels()) {
if (type == TextType::OPEN_SUBTITLE) {
- if (i->main_subtitle()->entry_point().get_value_or(0) != 0) {
+ if (i->main_subtitle()
&& i->main_subtitle()
->entry_point().get_value_or(0) != 0) {
/// TRANSLATORS: this string will follow "Cannot reference this DCP: "
why_not = _("one of its subtitle reels has a non-zero entry point so it must be re-written.");
return false;