Various alignment tidying/fixups.
[dcpomatic.git] / src / lib / types.cc
index 3586cdb935b67bc065a55a99592611967eb13706..228ebf28f6d47bc442e12d8b4f43540c66ae1189 100644 (file)
@@ -214,13 +214,15 @@ CPLSummary::CPLSummary (boost::filesystem::path p)
        encrypted = false;
        for (auto j: dcp.cpls()) {
                for (auto k: j->reel_file_assets()) {
-                       if (k->key_id()) {
+                       if (k->encrypted()) {
                                encrypted = true;
                        }
                }
        }
 
-       last_write_time = boost::filesystem::last_write_time (p);
+       boost::system::error_code ec;
+       auto last_write = boost::filesystem::last_write_time (p, ec);
+       last_write_time = ec ? 0 : last_write;
 }