Missing finalize() in dcpdecryptmxf.
[libdcp.git] / src / asset_writer.cc
index 4f5cf4be65876bcaf6d54f880b33e85ab64cb9bd..05d0aa23e252331d21d4e27467db4fd71d5693d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/asset_writer.h
- *  @brief AssetWriter class.
+ *  @brief AssetWriter class
  */
 
+
 #include "asset_writer.h"
-#include "mxf.h"
+#include "crypto_context.h"
 #include "dcp_assert.h"
-#include "encryption_context.h"
+#include "mxf.h"
 #include <asdcp/AS_DCP.h>
 #include <asdcp/KM_prng.h>
 
+
 using namespace dcp;
 
+
 /** Create an AssetWriter.
  *  @param mxf MXF that we are writing.
  *  @param file File to write to.
@@ -51,15 +55,12 @@ using namespace dcp;
 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(), mxf->standard()))
+       , _crypto_context(new EncryptionContext (mxf->key(), mxf->standard()))
 {
 
 }
 
-/** @return true if anything was written by this writer */
+
 bool
 AssetWriter::finalize ()
 {