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/decoder_part.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/decoder_part.h')
| -rw-r--r-- | src/lib/decoder_part.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 1a8794527..ed92d43b4 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -40,13 +40,7 @@ public: return _ignore; } - void set_position (ContentTime position) { - _position = position; - } - - boost::optional<ContentTime> position () const { - return _position; - } + virtual boost::optional<ContentTime> position () const = 0; void maybe_seek (ContentTime time, bool accurate); @@ -56,7 +50,6 @@ protected: private: bool _ignore; - boost::optional<ContentTime> _position; }; #endif |
