using std::list;
using std::sort;
using boost::shared_ptr;
+using boost::optional;
ImageExaminer::ImageExaminer (shared_ptr<const Film> film, shared_ptr<const ImageContent> content, shared_ptr<Job>)
: _film (film)
if (content->still ()) {
_video_length = ContentTime::from_seconds (Config::instance()->default_still_length());
} else {
- _video_length = ContentTime::from_frames (_image_content->number_of_paths (), video_frame_rate ());
+ _video_length = ContentTime::from_frames (
+ _image_content->number_of_paths (), video_frame_rate().get_value_or (0)
+ );
}
}
return _video_size.get ();
}
-float
+optional<float>
ImageExaminer::video_frame_rate () const
{
- boost::shared_ptr<const Film> f = _film.lock ();
- if (!f) {
- return 24;
- }
-
- return f->video_frame_rate ();
+ /* Don't know */
+ return optional<float> ();
}