diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-04 11:43:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-04 11:43:55 +0100 |
| commit | 9655db97eae5a6137a45ad809dbf42528dc74408 (patch) | |
| tree | 178ecd2e313ceb6aa7d11fbadb950c53381f1280 /src/lib/subtitle_decoder.h | |
| parent | c88a8a6ec6b396dc90d40a4843160d616a45db76 (diff) | |
Add 'starting' option to subtitles_during().
Diffstat (limited to 'src/lib/subtitle_decoder.h')
| -rw-r--r-- | src/lib/subtitle_decoder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h index 51faca97f..142cfa42b 100644 --- a/src/lib/subtitle_decoder.h +++ b/src/lib/subtitle_decoder.h @@ -35,8 +35,8 @@ class SubtitleDecoder : public virtual Decoder public: SubtitleDecoder (boost::shared_ptr<const SubtitleContent>); - std::list<ContentImageSubtitle> get_image_subtitles (ContentTimePeriod period); - std::list<ContentTextSubtitle> get_text_subtitles (ContentTimePeriod period); + std::list<ContentImageSubtitle> get_image_subtitles (ContentTimePeriod period, bool starting); + std::list<ContentTextSubtitle> get_text_subtitles (ContentTimePeriod period, bool starting); protected: void seek (ContentTime, bool); @@ -49,9 +49,9 @@ protected: private: template <class T> - std::list<T> get (std::list<T> const & subs, ContentTimePeriod period); + std::list<T> get (std::list<T> const & subs, ContentTimePeriod period, bool starting); - virtual std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod) const = 0; + virtual std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod, bool starting) const = 0; boost::shared_ptr<const SubtitleContent> _subtitle_content; }; |
