summaryrefslogtreecommitdiff
path: root/src/lib/text_subtitle_decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/text_subtitle_decoder.cc')
-rw-r--r--src/lib/text_subtitle_decoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/text_subtitle_decoder.cc b/src/lib/text_subtitle_decoder.cc
index 51a747fa9..1b8ee1310 100644
--- a/src/lib/text_subtitle_decoder.cc
+++ b/src/lib/text_subtitle_decoder.cc
@@ -50,18 +50,18 @@ TextSubtitleDecoder::seek (ContentTime time, bool)
}
}
-void
+bool
TextSubtitleDecoder::pass ()
{
if (_next >= _subtitles.size ()) {
- return;
+ return true;
}
ContentTimePeriod const p = content_time_period (_subtitles[_next]);
subtitle->emit_text (p, _subtitles[_next]);
++_next;
- return;
+ return false;
}
ContentTimePeriod