diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-12 19:37:05 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-12 19:37:05 +0000 |
| commit | e118ae9353cc3a3052cad2d07b43ec40e56f0074 (patch) | |
| tree | bfd2414901b74ccf779d6f252551ca274a411dc3 /src/lib/decoder_factory.cc | |
| parent | 106c8fb2d471cb0b01da3b6b09e743304a869f4b (diff) | |
Don't try to make decoders when there is no content.
Diffstat (limited to 'src/lib/decoder_factory.cc')
| -rw-r--r-- | src/lib/decoder_factory.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/decoder_factory.cc b/src/lib/decoder_factory.cc index 59e15722d..478ccd1c1 100644 --- a/src/lib/decoder_factory.cc +++ b/src/lib/decoder_factory.cc @@ -39,6 +39,10 @@ decoder_factory ( shared_ptr<Film> f, DecodeOptions o ) { + if (f->content().empty()) { + return Decoders (); + } + if (boost::filesystem::is_directory (f->content_path()) || f->content_type() == STILL) { /* A single image file, or a directory of them */ return Decoders ( |
