Add support for Datasat AP2x and USL sound processors when converting
[dcpomatic.git] / src / lib / types.cc
index ee36431cf8755d17a42ddb5d8215cd78eaf954a1..19e5da6ec78aa8c39c099f06d47f206cb3ab746d 100644 (file)
@@ -201,11 +201,12 @@ CPLSummary::CPLSummary (boost::filesystem::path p)
 
        encrypted = false;
        BOOST_FOREACH (shared_ptr<dcp::CPL> j, dcp.cpls()) {
-               BOOST_FOREACH (shared_ptr<const dcp::ReelAsset> k, j->reel_assets()) {
-                       shared_ptr<const dcp::ReelMXF> mxf = boost::dynamic_pointer_cast<const dcp::ReelMXF> (k);
-                       if (mxf && mxf->key_id()) {
+               BOOST_FOREACH (shared_ptr<const dcp::ReelMXF> k, j->reel_mxfs()) {
+                       if (k->key_id()) {
                                encrypted = true;
                        }
                }
        }
+
+       last_write_time = boost::filesystem::last_write_time (p);
 }