summaryrefslogtreecommitdiff
path: root/src/sound_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-22 18:57:05 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-22 18:57:05 +0100
commit0251d3f2986bf70d4721b7127ca6ddcc9da3b256 (patch)
tree5b8bee96ae9bd53c7e78c264cdf08993f3a28e41 /src/sound_asset.cc
parent422c8a63d2368a2e63aee4c391207e3332d1d4c7 (diff)
Add basic example; tweak bits and pieces.
Diffstat (limited to 'src/sound_asset.cc')
-rw-r--r--src/sound_asset.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc
index 75ca3a76..732bb610 100644
--- a/src/sound_asset.cc
+++ b/src/sound_asset.cc
@@ -170,7 +170,9 @@ SoundAsset::construct (sigc::slot<string, Channel> get_path)
throw MiscError ("could not write audio MXF frame");
}
- (*_progress) (0.5 * float (i) / _length);
+ if (_progress) {
+ (*_progress) (0.5 * float (i) / _length);
+ }
}
if (ASDCP_FAILURE (mxf_writer.Finalize())) {