summaryrefslogtreecommitdiff
path: root/src/lib/piece.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-23 22:17:14 +0200
committerCarl Hetherington <cth@carlh.net>2020-12-01 16:37:41 +0100
commit033bffd1ad6a5bb2f5dd22d461ed909f3b30f8f5 (patch)
tree726274299fc805d240cf144649d260424a19ff51 /src/lib/piece.h
parentf7c43baf9b67505f04bb0954ab6e9e36f88efced (diff)
Make Piece content/decoder vectors and all members private.
Diffstat (limited to 'src/lib/piece.h')
-rw-r--r--src/lib/piece.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/piece.h b/src/lib/piece.h
index 440beecf4..8309be084 100644
--- a/src/lib/piece.h
+++ b/src/lib/piece.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -30,17 +30,13 @@ class Decoder;
class Piece
{
public:
- Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d, FrameRateChange f)
- : content (c)
- , decoder (d)
- , frc (f)
- , done (false)
- {}
-
- boost::shared_ptr<Content> content;
- boost::shared_ptr<Decoder> decoder;
- FrameRateChange frc;
- bool done;
+ Piece (boost::shared_ptr<Content> c, boost::shared_ptr<Decoder> d, FrameRateChange f);
+
+private:
+ std::vector<boost::shared_ptr<Content> > _content;
+ std::vector<boost::shared_ptr<Decoder> > _decoder;
+ FrameRateChange _frc;
+ bool _done;
};
#endif