summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-26 09:37:29 +0000
committerCarl Hetherington <cth@carlh.net>2015-10-26 09:37:29 +0000
commit2e62b2c0de47fc8e5bcb5466b2876f9b23d2ae84 (patch)
treedd6ec559cfb77bc16a510aebbe1021b114a53748 /src/lib/subtitle_decoder.h
parent526fd6de4c80a7ac9614a1cb0209efff7b171cd5 (diff)
Reinstate subtitle speed-up patch 526fd6de4c80a7ac9614a1cb0209efff7b171cd5 but only for preview.
Diffstat (limited to 'src/lib/subtitle_decoder.h')
-rw-r--r--src/lib/subtitle_decoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h
index d01c4e45b..dd9c024e6 100644
--- a/src/lib/subtitle_decoder.h
+++ b/src/lib/subtitle_decoder.h
@@ -33,8 +33,8 @@ class SubtitleDecoder : public virtual Decoder
public:
SubtitleDecoder (boost::shared_ptr<const SubtitleContent>);
- std::list<ContentImageSubtitle> get_image_subtitles (ContentTimePeriod period, bool starting);
- std::list<ContentTextSubtitle> get_text_subtitles (ContentTimePeriod period, bool starting);
+ std::list<ContentImageSubtitle> get_image_subtitles (ContentTimePeriod period, bool starting, bool accurate);
+ std::list<ContentTextSubtitle> get_text_subtitles (ContentTimePeriod period, bool starting, bool accurate);
protected:
void seek (ContentTime, bool);
@@ -47,7 +47,7 @@ protected:
private:
template <class T>
- std::list<T> get (std::list<T> const & subs, std::list<ContentTimePeriod> const & sp, ContentTimePeriod period, bool starting);
+ std::list<T> get (std::list<T> const & subs, std::list<ContentTimePeriod> const & sp, ContentTimePeriod period, bool starting, bool accurate);
/** @param starting true if we want only subtitles that start during the period, otherwise
* we want subtitles that overlap the period.