diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-15 21:23:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-15 21:23:33 +0000 |
| commit | 8353a009aae1a604251c0160193c39741c2fa27c (patch) | |
| tree | 558d2b1951f2b4f05f0ab93b46d10afd0ebee929 /src/lib/subrip_decoder.cc | |
| parent | d0bca7d33b8101cd87f78d5a76b2512dea3988f8 (diff) | |
| parent | 4e5d5c7dcc6470b8dc918d03a00e30c07df60efe (diff) | |
Merge 1.0-seek and subtitle-content.
Diffstat (limited to 'src/lib/subrip_decoder.cc')
| -rw-r--r-- | src/lib/subrip_decoder.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/subrip_decoder.cc b/src/lib/subrip_decoder.cc index deee82847..aecee4e3e 100644 --- a/src/lib/subrip_decoder.cc +++ b/src/lib/subrip_decoder.cc @@ -31,9 +31,13 @@ SubRipDecoder::SubRipDecoder (shared_ptr<const Film> film, shared_ptr<const SubR } -void +bool SubRipDecoder::pass () { + if (_next >= _subtitles.size ()) { + return true; + } + list<libdcp::Subtitle> out; for (list<SubRipSubtitlePiece>::const_iterator i = _subtitles[_next].pieces.begin(); i != _subtitles[_next].pieces.end(); ++i) { out.push_back ( @@ -57,10 +61,5 @@ SubRipDecoder::pass () text_subtitle (out); _next++; -} - -bool -SubRipDecoder::done () const -{ - return _next == _subtitles.size (); + return false; } |
