summaryrefslogtreecommitdiff
path: root/src/asset_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-16 00:51:07 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-16 00:51:07 +0100
commit14848004f619d11bd6810735637d428f101e6b51 (patch)
treee2aa460b25f98db37523c2ea92cc3997c3745336 /src/asset_writer.cc
parenta6070a8af446620ab16ad172b94041601c95700d (diff)
Consider assets outside the DCP as referenced assets (i.e.1.0-vf
not to be written to the asset map). Return a value from finalize() to say whether a writer has written anything. Other small related tweaks.
Diffstat (limited to 'src/asset_writer.cc')
-rw-r--r--src/asset_writer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/asset_writer.cc b/src/asset_writer.cc
index db2d4c53..13adc50e 100644
--- a/src/asset_writer.cc
+++ b/src/asset_writer.cc
@@ -61,9 +61,11 @@ AssetWriter::~AssetWriter ()
delete _encryption_context;
}
-void
+/** @return true if anything was written by this writer */
+bool
AssetWriter::finalize ()
{
DCP_ASSERT (!_finalized);
_finalized = true;
+ return _started;
}