From a560a7ffad0af32deb24c15242c9fc25c4e1fe69 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 10 Apr 2017 09:27:36 +0100 Subject: Fix dcpomatic_create with no output directory specified. --- src/tools/dcpomatic_create.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index 0582f5cac..0a7a48a73 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -98,7 +98,7 @@ main (int argc, char* argv[]) Ratio const * content_ratio = 0; int still_length = 10; dcp::Standard standard = dcp::SMPTE; - boost::filesystem::path output; + optional output; bool sign = true; bool use_isdcf_name = true; @@ -263,7 +263,7 @@ main (int argc, char* argv[]) exit (EXIT_FAILURE); } - if (!output.empty ()) { + if (output) { film->write_metadata (); } else { film->metadata()->write_to_stream_formatted (cout, "UTF-8"); -- cgit v1.2.3