summaryrefslogtreecommitdiff
path: root/src/sound_asset_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound_asset_writer.cc')
-rw-r--r--src/sound_asset_writer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound_asset_writer.cc b/src/sound_asset_writer.cc
index 40acf924..ff14407d 100644
--- a/src/sound_asset_writer.cc
+++ b/src/sound_asset_writer.cc
@@ -115,7 +115,7 @@ SoundAssetWriter::~SoundAssetWriter()
{
try {
/* Last-resort finalization to close the file, at least */
- if (_started) {
+ if (!_finalized) {
_state->mxf_writer.Finalize();
}
} catch (...) {}
@@ -276,7 +276,6 @@ SoundAssetWriter::finalize ()
if (ASDCP_FAILURE(r)) {
boost::throw_exception (MiscError(String::compose ("could not finalise audio MXF (%1)", static_cast<int>(r))));
}
- _started = false;
}
_asset->_intrinsic_duration = _frames_written;