summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-02 10:42:06 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-02 10:42:06 +0100
commit0ce7f98699ff7d72fc91e5c9781b431ca36d7af9 (patch)
tree773f8bc5caccbd1d3bf4c78634758fbc4953b98e /src/lib/subtitle_decoder.h
parentc7c2502bc261bf3d81e96ddde9e189b9527dbc9e (diff)
Add missing seek stuff to SubtitleDecoder.
Diffstat (limited to 'src/lib/subtitle_decoder.h')
-rw-r--r--src/lib/subtitle_decoder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h
index efa90fd92..a26348ee6 100644
--- a/src/lib/subtitle_decoder.h
+++ b/src/lib/subtitle_decoder.h
@@ -39,11 +39,17 @@ public:
std::list<boost::shared_ptr<ContentTextSubtitle> > get_text_subtitles (ContentTime from, ContentTime to);
protected:
+ void seek (ContentTime, bool);
+
void image_subtitle (ContentTime from, ContentTime to, boost::shared_ptr<Image>, dcpomatic::Rect<double>);
void text_subtitle (std::list<dcp::SubtitleString>);
std::list<boost::shared_ptr<ContentImageSubtitle> > _decoded_image_subtitles;
std::list<boost::shared_ptr<ContentTextSubtitle> > _decoded_text_subtitles;
+
+private:
+ template <class T>
+ std::list<boost::shared_ptr<T> > get (std::list<boost::shared_ptr<T> > const & subs, ContentTime from, ContentTime to);
};
#endif