From e118ae9353cc3a3052cad2d07b43ec40e56f0074 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 12 Feb 2013 19:37:05 +0000 Subject: [PATCH] Don't try to make decoders when there is no content. --- src/lib/decoder_factory.cc | 4 ++++ 1 file changed, 4 insertions(+) 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 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 ( -- 2.30.2