diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-13 23:13:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-13 23:13:54 +0100 |
| commit | de5ad19f419a4443789236cc085a9a6b7df3ed1b (patch) | |
| tree | ac66bae40b70b2797f39aa423a33c1af04728372 /src/lib/atmos_mxf_decoder.cc | |
| parent | a488be44fa7559553036d4b081ad8e115311500b (diff) | |
Cleanup: use a class for the Decoder::pass() return value.
Diffstat (limited to 'src/lib/atmos_mxf_decoder.cc')
| -rw-r--r-- | src/lib/atmos_mxf_decoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/atmos_mxf_decoder.cc b/src/lib/atmos_mxf_decoder.cc index 19a19a8c4..5b5a4735d 100644 --- a/src/lib/atmos_mxf_decoder.cc +++ b/src/lib/atmos_mxf_decoder.cc @@ -45,19 +45,19 @@ AtmosMXFDecoder::AtmosMXFDecoder (std::shared_ptr<const Film> film, std::shared_ } -bool +Decoder::PassResult AtmosMXFDecoder::pass () { auto const vfr = _content->active_video_frame_rate (film()); auto const frame = _next.frames_round (vfr); if (frame >= _content->atmos->length()) { - return true; + return PassResult::finished(); } atmos->emit (film(), _reader->get_frame(frame), frame, *_metadata); _next += dcpomatic::ContentTime::from_frames (1, vfr); - return false; + return PassResult::ok(); } |
