Various Doxygen fixes.
[dcpomatic.git] / src / lib / decoder_factory.cc
index 7f53c9a4b0b8a34a62d12ed8cd012b3f772dd000..b661d494bf9f02b85864d9a1477974e85400f761 100644 (file)
@@ -37,44 +37,31 @@ using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 
 shared_ptr<Decoder>
-decoder_factory (shared_ptr<const Content> content, list<shared_ptr<ImageDecoder> > old_image_decoders, shared_ptr<Log> log, bool fast)
+decoder_factory (shared_ptr<const Content> content, shared_ptr<Log> log)
 {
        shared_ptr<const FFmpegContent> fc = dynamic_pointer_cast<const FFmpegContent> (content);
        if (fc) {
-               return shared_ptr<Decoder> (new FFmpegDecoder (fc, log, fast));
+               return shared_ptr<Decoder> (new FFmpegDecoder (fc, log));
        }
 
        shared_ptr<const DCPContent> dc = dynamic_pointer_cast<const DCPContent> (content);
        if (dc) {
-               return shared_ptr<Decoder> (new DCPDecoder (dc, log, fast));
+               return shared_ptr<Decoder> (new DCPDecoder (dc, log));
        }
 
        shared_ptr<const ImageContent> ic = dynamic_pointer_cast<const ImageContent> (content);
        if (ic) {
-               shared_ptr<Decoder> decoder;
-
-               /* See if we can re-use an old ImageDecoder */
-               BOOST_FOREACH (shared_ptr<ImageDecoder> i, old_image_decoders) {
-                       if (i->content() == ic) {
-                               decoder = i;
-                       }
-               }
-
-               if (!decoder) {
-                       decoder.reset (new ImageDecoder (ic, log));
-               }
-
-               return decoder;
+               return shared_ptr<Decoder> (new ImageDecoder (ic, log));
        }
 
        shared_ptr<const TextSubtitleContent> rc = dynamic_pointer_cast<const TextSubtitleContent> (content);
        if (rc) {
-               return shared_ptr<Decoder> (new TextSubtitleDecoder (rc));
+               return shared_ptr<Decoder> (new TextSubtitleDecoder (rc, log));
        }
 
        shared_ptr<const DCPSubtitleContent> dsc = dynamic_pointer_cast<const DCPSubtitleContent> (content);
        if (dsc) {
-               return shared_ptr<Decoder> (new DCPSubtitleDecoder (dsc));
+               return shared_ptr<Decoder> (new DCPSubtitleDecoder (dsc, log));
        }
 
        shared_ptr<const VideoMXFContent> vmc = dynamic_pointer_cast<const VideoMXFContent> (content);