summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-19 00:32:53 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-19 00:32:53 +0100
commit1f284533185a798c0ed36669bd6c9729adf6ec5a (patch)
tree94dd3de07e0670f1bf1eed0de94ada1033ceb7f6 /examples
parent37631b4d5e07eddbf052c1cff315d6a98b3bcb73 (diff)
Rename encrypted() to any_encrypted() and add all_encrypted().
Diffstat (limited to 'examples')
-rw-r--r--examples/read_dcp.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/read_dcp.cc b/examples/read_dcp.cc
index 9c6c307a..4664fea4 100644
--- a/examples/read_dcp.cc
+++ b/examples/read_dcp.cc
@@ -51,8 +51,10 @@ main ()
/* Read the DCP to find out about it */
dcp.read ();
- if (dcp.encrypted ()) {
+ if (dcp.all_encrypted()) {
std::cout << "DCP is encrypted.\n";
+ } else if (dcp.any_encrypted()) {
+ std::cout << "DCP is partially encrypted.\n";
} else {
std::cout << "DCP is not encrypted.\n";
}