Fix erroneous reports of unresolved assets when checking OV/VF pairs.
[libdcp.git] / src / asset_writer.cc
index b9bac1874335cd770c7d371401cc0ae76fee5027..c4302f4a7b9ffaef8a36e2262e200d2ead183171 100644 (file)
@@ -38,7 +38,7 @@
 #include "asset_writer.h"
 #include "mxf.h"
 #include "dcp_assert.h"
-#include "encryption_context.h"
+#include "crypto_context.h"
 #include <asdcp/AS_DCP.h>
 #include <asdcp/KM_prng.h>
 
@@ -48,13 +48,13 @@ using namespace dcp;
  *  @param mxf MXF that we are writing.
  *  @param file File to write to.
  */
-AssetWriter::AssetWriter (MXF* mxf, boost::filesystem::path file, Standard standard)
+AssetWriter::AssetWriter (MXF* mxf, boost::filesystem::path file)
        : _mxf (mxf)
        , _file (file)
        , _frames_written (0)
        , _finalized (false)
        , _started (false)
-       , _encryption_context (new EncryptionContext (mxf->key(), standard))
+       , _crypto_context (new EncryptionContext (mxf->key(), mxf->standard()))
 {
 
 }