summaryrefslogtreecommitdiff
path: root/src/sound_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/sound_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/sound_asset_writer.cc')
-rw-r--r--src/sound_asset_writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound_asset_writer.cc b/src/sound_asset_writer.cc
index f24605bb..02029f18 100644
--- a/src/sound_asset_writer.cc
+++ b/src/sound_asset_writer.cc
@@ -108,7 +108,7 @@ SoundAssetWriter::write_current_frame ()
++_frames_written;
}
-void
+bool
SoundAssetWriter::finalize ()
{
if (_frame_buffer_offset > 0) {
@@ -120,5 +120,5 @@ SoundAssetWriter::finalize ()
}
_sound_asset->_intrinsic_duration = _frames_written;
- AssetWriter::finalize ();
+ return AssetWriter::finalize ();
}