summaryrefslogtreecommitdiff
path: root/src/subtitle_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-23 22:29:44 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-23 22:29:44 +0000
commit6f125b65d1bc0650735624d7ada17a2ff573cbc4 (patch)
treec37d69892f5d0fe244991f66110243caa030de8d /src/subtitle_content.cc
parent2e25fdc885226110c0ab28b3c8026e3dc4345cb5 (diff)
Some missed bits from 0.x.
Diffstat (limited to 'src/subtitle_content.cc')
-rw-r--r--src/subtitle_content.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subtitle_content.cc b/src/subtitle_content.cc
index b074afa8..592bfc62 100644
--- a/src/subtitle_content.cc
+++ b/src/subtitle_content.cc
@@ -148,11 +148,11 @@ SubtitleContent::maybe_add_subtitle (string text, ParseState const & parse_state
}
list<SubtitleString>
-SubtitleContent::subtitles_at (Time t) const
+SubtitleContent::subtitles_during (Time from, Time to) const
{
list<SubtitleString> s;
for (list<SubtitleString>::const_iterator i = _subtitles.begin(); i != _subtitles.end(); ++i) {
- if (i->in() <= t && t <= i->out ()) {
+ if (i->out() >= from && i->in() <= to) {
s.push_back (*i);
}
}