diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-12-08 11:23:58 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-12-08 11:23:58 +0000 |
| commit | a28ef704adf8c5bfa45b3d6285f741af64758ceb (patch) | |
| tree | 04c1afa7b6a72f7faabe290d14713d242b867ab1 /src/lib/subtitle_decoder.h | |
| parent | 804f43474bba7008bf68fc9189793c89c512a944 (diff) | |
Further fixes and tidying to 'better-seek'.
This fixes the failure to keep track of the `position' of
each stream of a multi-stream file. It also tidies things
up a bit.
Diffstat (limited to 'src/lib/subtitle_decoder.h')
| -rw-r--r-- | src/lib/subtitle_decoder.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/subtitle_decoder.h b/src/lib/subtitle_decoder.h index dfa3d6d90..e5e931669 100644 --- a/src/lib/subtitle_decoder.h +++ b/src/lib/subtitle_decoder.h @@ -63,6 +63,14 @@ public: return _content; } + boost::optional<ContentTime> position () const { + return _position; + } + + void reset_position () { + _position.reset (); + } + private: std::list<ContentImageSubtitle> _decoded_image; @@ -74,6 +82,8 @@ private: boost::function<std::list<ContentTimePeriod> (ContentTimePeriod, bool)> _image_during; boost::function<std::list<ContentTimePeriod> (ContentTimePeriod, bool)> _text_during; + + boost::optional<ContentTime> _position; }; #endif |
