From a28ef704adf8c5bfa45b3d6285f741af64758ceb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 8 Dec 2016 11:23:58 +0000 Subject: 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. --- src/lib/audio_decoder.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/audio_decoder.h') diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 4b7594f35..cdb643cee 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -58,9 +58,12 @@ public: void flush (); void seek (ContentTime t, bool accurate); + boost::optional position () const; + private: /** An AudioDecoderStream object to manage each stream in _audio_content */ - std::map > _streams; + typedef std::map > StreamMap; + StreamMap _streams; }; #endif -- cgit v1.2.3