if (reel_lengths.empty()) {
/* Old metadata with no reel lengths; get them here instead */
try {
- scoped_ptr<DCPExaminer> examiner (new DCPExaminer(shared_from_this(), film->tolerant()));
- reel_lengths = examiner->reel_lengths ();
+ DCPExaminer examiner(shared_from_this(), true);
+ reel_lengths = examiner.reel_lengths();
} catch (...) {
/* Could not examine the DCP; guess reels */
reel_lengths.push_back (length_after_trim(film).frames_round(film->video_frame_rate()));
, _audio_language(Config::instance()->default_audio_language())
, _state_version (current_state_version)
, _dirty (false)
- , _tolerant (false)
{
set_isdcf_date_today ();
bool references_dcp_audio () const;
bool contains_atmos_content () const;
- void set_tolerant (bool t) {
- _tolerant = t;
- }
-
- bool tolerant () const {
- return _tolerant;
- }
-
bool last_written_by_earlier_than(int major, int minor, int micro) const;
/* GET */
/** film being used as a template, or 0 */
std::shared_ptr<Film> _template_film;
- /** Be tolerant of errors in content (currently applies to DCP only).
- Not saved as state.
- */
- bool _tolerant;
-
std::map<std::string, std::string> _ui_state;
boost::signals2::scoped_connection _playlist_change_connection;
void reset_film (shared_ptr<Film> film = shared_ptr<Film>(new Film(optional<boost::filesystem::path>())))
{
_film = film;
- _film->set_tolerant (true);
_film->set_audio_channels (MAX_DCP_AUDIO_CHANNELS);
_viewer.set_film(_film);
_controls->set_film (_film);