summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/writer.cc4
1 files changed, 2 insertions, 2 deletions
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<const Film> f, weak_ptr<Job> 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<const Film> f, weak_ptr<Job> 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 ());