summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-06-28 13:10:36 +0100
committerCarl Hetherington <cth@carlh.net>2017-06-29 11:26:56 +0100
commitcb845fc94ce2015138ddecb6c5a94e722361642a (patch)
treeffe691ee23dfeae72bcd91c9d0a2b95eb2e176e7 /src
parent5797d31e6f9766c88f241a5c4cf4cd9709b36b0a (diff)
Fix failure to add file-based content in dcpomatic2_create.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_create.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc
index 1f9a5b7ec..7c3ee1308 100644
--- a/src/tools/dcpomatic_create.cc
+++ b/src/tools/dcpomatic_create.cc
@@ -240,7 +240,10 @@ main (int argc, char* argv[])
list<shared_ptr<Content> > content;
try {
content.push_back (shared_ptr<DCPContent> (new DCPContent (film, can)));
- } catch (dcp::DCPReadError& e) {
+ } catch (dcp::DCPReadError) {
+ /* I guess it's not a DCP */
+ content = content_factory (film, can);
+ } catch (boost::filesystem::filesystem_error) {
/* I guess it's not a DCP */
content = content_factory (film, can);
}