if (_film->encrypted ()) {
_picture_asset->set_key (_film->key ());
+ _picture_asset->set_context_id (_film->context_id ());
}
_picture_asset->set_file (
bool const read = boost::filesystem::exists (info_file);
#ifdef DCPOMATIC_WINDOWS
- LOG_GENERAL (
- "Checked %1 (exists %2) length is %3 perms are %4",
- info_file, read ? 1 : 0, boost::filesystem::file_size (info_file), int(boost::filesystem::status(info_file).permissions())
- );
+ if (read) {
+ LOG_GENERAL (
+ "Checked %1 (which exists) length is %2 perms are %3",
+ info_file, boost::filesystem::file_size (info_file), int(boost::filesystem::status(info_file).permissions())
+ );
+ } else {
+ LOG_GENERAL ("Checked %1 (which does not exist)", info_file);
+ }
#endif
if (read) {
{
if (!_picture_asset_writer->finalize ()) {
/* Nothing was written to the picture asset */
+ LOG_GENERAL ("Nothing was written to reel %1 of %2", _reel_index, _reel_count);
_picture_asset.reset ();
}
reel_picture_asset.reset (new dcp::ReelStereoPictureAsset (stereo, 0));
}
} else {
+ LOG_GENERAL ("no picture asset of our own; look through %1", refs.size());
/* We don't have a picture asset of our own; hopefully we have one to reference */
BOOST_FOREACH (ReferencedReelAsset j, refs) {
shared_ptr<dcp::ReelPictureAsset> k = dynamic_pointer_cast<dcp::ReelPictureAsset> (j.asset);
+ if (k) {
+ LOG_GENERAL ("candidate picture asset period is %1-%2", j.period.from.get(), j.period.to.get());
+ }
if (k && j.period == _period) {
reel_picture_asset = k;
}
}
}
+ LOG_GENERAL ("create_reel for %1-%2; %3 of %4", _period.from.get(), _period.to.get(), _reel_index, _reel_count);
+
DCPOMATIC_ASSERT (reel_picture_asset);
reel->add (reel_picture_asset);
_sound_asset_writer->write (audio->data(), audio->frames());
}
- ++_total_written_audio_frames;
+ _total_written_audio_frames += audio->frames ();
}
void