Remove unused ignore_length parameter.
[dcpomatic.git] / src / lib / decoder_factory.cc
index 06377e26c4cb6b476a273ccc0034d4df44dbaac5..287bba0da9b1759a638e9317be188c14d2ff764f 100644 (file)
@@ -32,20 +32,17 @@ using boost::shared_ptr;
 
 shared_ptr<Decoder>
 decoder_factory (
-       shared_ptr<Film> f, shared_ptr<const Options> o, Job* j, bool minimal = false, bool ignore_length = false
+       shared_ptr<Film> f, shared_ptr<const Options> o, Job* j, bool minimal = false
        )
 {
        if (boost::filesystem::is_directory (f->content_path ())) {
                /* Assume a directory contains TIFFs */
-               return shared_ptr<Decoder> (new TIFFDecoder (f, o, j, minimal, ignore_length));
+               return shared_ptr<Decoder> (new TIFFDecoder (f, o, j, minimal));
        }
 
        if (f->content_type() == STILL) {
-               /* Always ignore length of decodes of stills, since the decoder finishes very quickly
-                  and it's the encoder that takes the time.
-               */
-               return shared_ptr<Decoder> (new ImageMagickDecoder (f, o, j, minimal, true));
+               return shared_ptr<Decoder> (new ImageMagickDecoder (f, o, j, minimal));
        }
        
-       return shared_ptr<Decoder> (new FFmpegDecoder (f, o, j, minimal, ignore_length));
+       return shared_ptr<Decoder> (new FFmpegDecoder (f, o, j, minimal));
 }