diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 16:55:50 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 16:55:50 +0000 |
| commit | 1d96023ab3987e55fd6452f655dfb900c6012881 (patch) | |
| tree | 235b558aec10da89dca7484686ff035cbef4811c /src/lib/decoder_factory.cc | |
| parent | 4fb0a5ab9eebc0f07981edc3a6813102520b8233 (diff) | |
Remove unused ignore_length parameter.
Diffstat (limited to 'src/lib/decoder_factory.cc')
| -rw-r--r-- | src/lib/decoder_factory.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/decoder_factory.cc b/src/lib/decoder_factory.cc index 06377e26c..287bba0da 100644 --- a/src/lib/decoder_factory.cc +++ b/src/lib/decoder_factory.cc @@ -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)); } |
