diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-04-10 09:27:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-10 09:27:36 +0100 |
| commit | a560a7ffad0af32deb24c15242c9fc25c4e1fe69 (patch) | |
| tree | 42decd7f705b87dc4b816d7ade51e038510561c6 /src | |
| parent | 21d5ca8c20193c3e62f4b0ca5033ebe0bc2ea21d (diff) | |
Fix dcpomatic_create with no output directory specified.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_create.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<boost::filesystem::path> 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"); |
