From 2e62b2c0de47fc8e5bcb5466b2876f9b23d2ae84 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 26 Oct 2015 09:37:29 +0000 Subject: Reinstate subtitle speed-up patch 526fd6de4c80a7ac9614a1cb0209efff7b171cd5 but only for preview. --- src/lib/subtitle_decoder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/subtitle_decoder.h') 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); - std::list get_image_subtitles (ContentTimePeriod period, bool starting); - std::list get_text_subtitles (ContentTimePeriod period, bool starting); + std::list get_image_subtitles (ContentTimePeriod period, bool starting, bool accurate); + std::list get_text_subtitles (ContentTimePeriod period, bool starting, bool accurate); protected: void seek (ContentTime, bool); @@ -47,7 +47,7 @@ protected: private: template - std::list get (std::list const & subs, std::list const & sp, ContentTimePeriod period, bool starting); + std::list get (std::list const & subs, std::list 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. -- cgit v1.2.3