diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-22 14:51:08 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-04-08 00:22:40 +0100 |
| commit | 11f8b65c866e8ecaa28ade8cbd9a5bc270b958f7 (patch) | |
| tree | 3069a5adb21eb28c54da9ae19833dbda2f1e666e | |
| parent | a0b51a895ffa833b1e46d1a47070110412a4c0ac (diff) | |
Update for libdcp API changes.
| -rw-r--r-- | src/lib/dcp_examiner.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index c70d8b2db..f44db84e1 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -135,7 +135,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) throw DCPError (_("Mismatched video sizes in DCP")); } - _video_length += i->main_picture()->duration(); + _video_length += i->main_picture()->actual_duration(); } if (i->main_sound ()) { @@ -160,7 +160,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) throw DCPError (_("Mismatched audio sample rates in DCP")); } - _audio_length += i->main_sound()->duration(); + _audio_length += i->main_sound()->actual_duration(); } if (i->main_subtitle ()) { @@ -184,13 +184,13 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) } if (i->main_picture()) { - _reel_lengths.push_back (i->main_picture()->duration()); + _reel_lengths.push_back (i->main_picture()->actual_duration()); } else if (i->main_sound()) { - _reel_lengths.push_back (i->main_sound()->duration()); + _reel_lengths.push_back (i->main_sound()->actual_duration()); } else if (i->main_subtitle()) { - _reel_lengths.push_back (i->main_subtitle()->duration()); + _reel_lengths.push_back (i->main_subtitle()->actual_duration()); } else if (!i->closed_captions().empty()) { - _reel_lengths.push_back (i->closed_captions().front()->duration()); + _reel_lengths.push_back (i->closed_captions().front()->actual_duration()); } } |
