summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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";
}