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/dcp_decoder.cc | |
| parent | a488be44fa7559553036d4b081ad8e115311500b (diff) | |
Cleanup: use a class for the Decoder::pass() return value.
Diffstat (limited to 'src/lib/dcp_decoder.cc')
| -rw-r--r-- | src/lib/dcp_decoder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dcp_decoder.cc b/src/lib/dcp_decoder.cc index 7baf05dad..3bcb52902 100644 --- a/src/lib/dcp_decoder.cc +++ b/src/lib/dcp_decoder.cc @@ -183,18 +183,18 @@ DCPDecoder::pass_video(Frame frame, dcp::Size size) } -bool +Decoder::PassResult DCPDecoder::pass () { if (!_dcp_content->can_be_played()) { - return true; + return PassResult::finished(); } if (_reel == _reels.end()) { if (audio) { audio->flush (); } - return true; + return PassResult::finished(); } auto const vfr = _dcp_content->active_video_frame_rate (film()); @@ -248,7 +248,7 @@ DCPDecoder::pass () } } - return false; + return PassResult::ok(); } |
