Optimise decoder_factory for DCPDecoder by offering the old decoder
[dcpomatic.git] / src / lib / dcp_decoder.h
index 0fc598bd79d0fa39a5924452a91ce086f019c176..f31d28053c3b3fc987190585fab451633a6ffa38 100644 (file)
@@ -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;