diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-23 22:36:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-01 16:37:41 +0100 |
| commit | 3a3ec2410363a2e23b6a3ef0e0fda582cbc4270b (patch) | |
| tree | 03b50ec83a4dd10875f3aa36fad467199f172936 /src/lib/piece.h | |
| parent | eb3167445033d600756840b10a3c28b67f5af598 (diff) | |
Move _stream_states into Piece; this seems like a nice change anyway.
Diffstat (limited to 'src/lib/piece.h')
| -rw-r--r-- | src/lib/piece.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/piece.h b/src/lib/piece.h index 8309be084..3e4c66aea 100644 --- a/src/lib/piece.h +++ b/src/lib/piece.h @@ -21,8 +21,10 @@ #ifndef DCPOMATIC_PIECE_H #define DCPOMATIC_PIECE_H -#include "types.h" +#include "audio_stream.h" +#include "dcpomatic_time.h" #include "frame_rate_change.h" +#include "types.h" class Content; class Decoder; @@ -32,11 +34,16 @@ class Piece public: Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d, FrameRateChange f); + void update_pull_to (dcpomatic::DCPTime& pull_to) const; + void set_last_push_end (AudioStreamPtr stream, DCPTime last_push_end); + private: std::vector<boost::shared_ptr<Content> > _content; std::vector<boost::shared_ptr<Decoder> > _decoder; FrameRateChange _frc; bool _done; + + std::map<AudioStreamPtr, dcpomatic::DCPTime> _stream_last_push_end; }; #endif |
