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/string_text_file_decoder.cc | |
| parent | a488be44fa7559553036d4b081ad8e115311500b (diff) | |
Cleanup: use a class for the Decoder::pass() return value.
Diffstat (limited to 'src/lib/string_text_file_decoder.cc')
| -rw-r--r-- | src/lib/string_text_file_decoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/string_text_file_decoder.cc b/src/lib/string_text_file_decoder.cc index 2ec0ec1cb..796892402 100644 --- a/src/lib/string_text_file_decoder.cc +++ b/src/lib/string_text_file_decoder.cc @@ -67,11 +67,11 @@ StringTextFileDecoder::seek (ContentTime time, bool accurate) } -bool +Decoder::PassResult StringTextFileDecoder::pass () { if (_next >= _subtitles.size ()) { - return true; + return PassResult::finished(); } ContentTimePeriod const p = content_time_period (_subtitles[_next]); @@ -81,7 +81,7 @@ StringTextFileDecoder::pass () update_position(); - return false; + return PassResult::ok(); } |
