summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/hints.cc17
-rw-r--r--src/lib/hints.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc
index cf385216e..99882ec0e 100644
--- a/src/lib/hints.cc
+++ b/src/lib/hints.cc
@@ -487,6 +487,7 @@ try
check_audio_language();
check_8_or_16_audio_channels();
check_video_alpha();
+ check_encryption();
scan_content(film);
@@ -786,3 +787,19 @@ Hints::check_video_alpha()
}
}
+
+void
+Hints::check_encryption()
+{
+ if (
+ film()->encrypt_picture() != film()->encrypt_sound() ||
+ film()->encrypt_picture() != film()->encrypt_text() ||
+ film()->encrypt_sound() != film()->encrypt_text()) {
+ hint(_("Some of your content is encrypted, and some not. Though some distributors (e.g. Netflix) "
+ "require subtitles not to be encrypted (even if picture and sound are), others will flag "
+ "errors with the DCP made from this project. If in doubt, set everything (picture, sound "
+ "and text) to be either encrypted or not."));
+
+ }
+}
+
diff --git a/src/lib/hints.h b/src/lib/hints.h
index 49fd32ea9..b17da2c99 100644
--- a/src/lib/hints.h
+++ b/src/lib/hints.h
@@ -87,6 +87,7 @@ private:
void check_audio_language();
void check_8_or_16_audio_channels();
void check_video_alpha();
+ void check_encryption();
boost::thread _thread;
/** This is used to make a partial DCP containing only the subtitles and closed captions that