summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-22 19:58:23 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-22 19:58:23 +0100
commitb626119b67727f986339203a8a34a4c843fbf068 (patch)
tree764348aee843526ce0a3e8f76fe94e177107bce3 /src/lib/dcp_content.cc
parent429c5c9491151aa95a9a61abd5956bd6cebd4a1f (diff)
Fix build with multiple closed captions.
Diffstat (limited to 'src/lib/dcp_content.cc')
-rw-r--r--src/lib/dcp_content.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index 2d375cf03..a2874a604 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -600,6 +600,7 @@ bool check_text (shared_ptr<const Content> c)
{
return !c->text.empty();
}
+
bool
DCPContent::can_reference_text (TextType type, string& why_not) const
{
@@ -620,7 +621,7 @@ DCPContent::can_reference_text (TextType type, string& why_not) const
why_not = _("it does not have open subtitles in all its reels.");
return false;
}
- if (type == TEXT_CLOSED_CAPTION && !i->closed_caption()) {
+ if (type == TEXT_CLOSED_CAPTION && i->closed_captions().empty()) {
/// TRANSLATORS: this string will follow "Cannot reference this DCP: "
why_not = _("it does not have closed captions in all its reels.");
return false;