diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-18 00:29:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-18 00:29:47 +0000 |
| commit | 099cb53c7a1079b3d3b2bf0c1cf635673a0192fd (patch) | |
| tree | e56297d012812c24d63f512b71367420b228ee17 /src/reel.cc | |
| parent | e5ce888e953340ca94d506d710f90fec93540cd2 (diff) | |
Accept that <Duration> and <EntryPoint> are optional, and account for this in tests.
Also fix tests to reflect <AnnotationText> no longer being filled in with a default
value.
Diffstat (limited to 'src/reel.cc')
| -rw-r--r-- | src/reel.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/reel.cc b/src/reel.cc index bda83531..0a9a4b63 100644 --- a/src/reel.cc +++ b/src/reel.cc @@ -328,22 +328,22 @@ Reel::duration () const int64_t d = 0; if (_main_picture) { - d = max (d, _main_picture->duration ()); + d = max (d, _main_picture->actual_duration()); } if (_main_sound) { - d = max (d, _main_sound->duration ()); + d = max (d, _main_sound->actual_duration()); } if (_main_subtitle) { - d = max (d, _main_subtitle->duration ()); + d = max (d, _main_subtitle->actual_duration()); } if (_main_markers) { - d = max (d, _main_markers->duration ()); + d = max (d, _main_markers->actual_duration()); } BOOST_FOREACH (shared_ptr<ReelClosedCaptionAsset> i, _closed_captions) { - d = max (d, i->duration()); + d = max (d, i->actual_duration()); } if (_atmos) { - d = max (d, _atmos->duration ()); + d = max (d, _atmos->actual_duration()); } return d; |
