diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-16 00:51:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-16 00:51:07 +0100 |
| commit | 14848004f619d11bd6810735637d428f101e6b51 (patch) | |
| tree | e2aa460b25f98db37523c2ea92cc3997c3745336 /src/asset_writer.cc | |
| parent | a6070a8af446620ab16ad172b94041601c95700d (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.cc | 4 |
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; } |
