summaryrefslogtreecommitdiff
path: root/src/asset_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-23 15:35:24 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-23 15:35:24 +0100
commit6c37cc1979b2a01205a888c4c98f3334685ee8dd (patch)
tree9de52a3053e57bdf79a7986319cb097b33e46b5c /src/asset_writer.cc
parentb75d977a38f039fd68ed5d4055ae70b4bf631603 (diff)
Tidying.
Diffstat (limited to 'src/asset_writer.cc')
-rw-r--r--src/asset_writer.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/asset_writer.cc b/src/asset_writer.cc
index c4302f4a..73fc2046 100644
--- a/src/asset_writer.cc
+++ b/src/asset_writer.cc
@@ -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.
@@ -31,19 +31,23 @@
files in the program, then also delete it here.
*/
+
/** @file src/asset_writer.h
* @brief AssetWriter class.
*/
+
#include "asset_writer.h"
-#include "mxf.h"
-#include "dcp_assert.h"
#include "crypto_context.h"
+#include "dcp_assert.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,14 +55,12 @@ using namespace dcp;
AssetWriter::AssetWriter (MXF* mxf, boost::filesystem::path file)
: _mxf (mxf)
, _file (file)
- , _frames_written (0)
- , _finalized (false)
- , _started (false)
- , _crypto_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 ()