return;
}
- job->sub (_("Computing digest"));
+ if (job) {
+ job->sub (_("Computing digest"));
+ }
boost::mutex::scoped_lock lm (_mutex);
vector<boost::filesystem::path> p = _paths;
_video_length = ContentTime::from_seconds (Config::instance()->default_still_length());
} else {
_video_length = ContentTime::from_frames (
- _image_content->number_of_paths (), video_frame_rate().get_value_or (0)
+ _image_content->number_of_paths (), video_frame_rate().get_value_or (24)
);
}
}
{
boost::mutex::scoped_lock lm (_mutex);
_video_size = vs;
- if (vfr) {
- _video_frame_rate = vfr.get ();
- }
+ /* Default video frame rate to 24fps if the examiner doesn't know */
+ _video_frame_rate = vfr.get_value_or (24);
_video_length = vl;
_sample_aspect_ratio = ar;
/* XXX: check for lots of files here and do something */
for (unsigned int i = 0; i < paths.GetCount(); ++i) {
- shared_ptr<Content> c = content_factory (_film, wx_to_std (paths[i]));
- shared_ptr<ImageContent> ic = dynamic_pointer_cast<ImageContent> (c);
- if (ic) {
- ic->set_video_frame_rate (24);
- }
- _film->examine_and_add_content (c, true);
+ _film->examine_and_add_content (content_factory (_film, wx_to_std (paths[i])), true);
}
d->Destroy ();