diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-07-25 11:37:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-07-25 11:37:52 +0100 |
| commit | 57f112a2bd073123a686141be6c16ba997349056 (patch) | |
| tree | ef4e181329049b447ae977157872029691b64f85 /src/lib/dcp_decoder.h | |
| parent | 122111f680dc186f936960394f0720374d7d5dca (diff) | |
Optimise decoder_factory for DCPDecoder by offering the old decoder
(if available) to recover the list of reels from, rather than having
to scan the filesystem again.
Diffstat (limited to 'src/lib/dcp_decoder.h')
| -rw-r--r-- | src/lib/dcp_decoder.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index 0fc598bd7..f31d28053 100644 --- a/src/lib/dcp_decoder.h +++ b/src/lib/dcp_decoder.h @@ -40,7 +40,12 @@ struct dcp_subtitle_within_dcp_test; class DCPDecoder : public DCP, public Decoder { public: - DCPDecoder (boost::shared_ptr<const Film> film, boost::shared_ptr<const DCPContent>, bool fast); + DCPDecoder ( + boost::shared_ptr<const Film> film, + boost::shared_ptr<const DCPContent>, + bool fast, + boost::shared_ptr<DCPDecoder> old = boost::shared_ptr<DCPDecoder>() + ); std::list<boost::shared_ptr<dcp::Reel> > reels () const { return _reels; |
