Optimise decoder_factory for DCPDecoder by offering the old decoder
[dcpomatic.git] / src / lib / decoder_factory.h
index d4e39da178fd258855e2ef3da8fa7a1ea06235b4..cb145c8a90a4f7c7dacc4e1ad728d8d4e3c4ae5a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2019 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -23,5 +23,6 @@ class ImageDecoder;
 extern boost::shared_ptr<Decoder> decoder_factory (
        boost::shared_ptr<const Film> film,
        boost::shared_ptr<const Content> content,
-       bool fast
+       bool fast,
+       boost::shared_ptr<Decoder> old_decoder
        );