From 3ace8d6c8400939a6b66743fe395a0c16a90ecf2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 10 Jan 2014 10:29:44 +0000 Subject: Fix daft mistake in ordering with audio MXF deletion saga. --- src/lib/writer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/writer.cc b/src/lib/writer.cc index cc3b87596..b93a26bb0 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -91,8 +91,6 @@ Writer::Writer (shared_ptr f, weak_ptr j) _picture_asset->set_key (_film->key ()); } - _picture_asset_writer = _picture_asset->start_write (_first_nonexistant_frame > 0); - /* Write the sound asset into the film directory so that we leave the creation of the DCP directory until the last minute. Some versions of windows inexplicably don't like overwriting existing files here, so try to remove it using boost. @@ -108,6 +106,8 @@ Writer::Writer (shared_ptr f, weak_ptr j) ); } + _picture_asset_writer = _picture_asset->start_write (_first_nonexistant_frame > 0); + _sound_asset.reset (new libdcp::SoundAsset (_film->directory (), _film->audio_mxf_filename ())); _sound_asset->set_edit_rate (_film->video_frame_rate ()); _sound_asset->set_channels (_film->audio_channels ()); -- cgit v1.2.3