X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fscreen_kdm.cc;h=182d03bb071c7d8cd632303ab76357e15272ed5d;hb=55861a0b4ad4270f80b8d1ae10230cf2ebb25735;hp=3290d2a685d1ba8d9883ab2e050f963718952348;hpb=fbe2784c136fa1550815babfce89589f66b35a29;p=dcpomatic.git diff --git a/src/lib/screen_kdm.cc b/src/lib/screen_kdm.cc index 3290d2a68..182d03bb0 100644 --- a/src/lib/screen_kdm.cc +++ b/src/lib/screen_kdm.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2016 Carl Hetherington This file is part of DCP-o-matic. @@ -35,13 +35,13 @@ operator== (ScreenKDM const & a, ScreenKDM const & b) } void -ScreenKDM::write_files (list screen_kdms, boost::filesystem::path directory, KDMNameFormat name_format, dcp::NameFormat::Map name_values) +ScreenKDM::write_files (list screen_kdms, boost::filesystem::path directory, dcp::NameFormat name_format, dcp::NameFormat::Map name_values) { /* Write KDMs to the specified directory */ BOOST_FOREACH (ScreenKDM const & i, screen_kdms) { name_values['c'] = i.screen->cinema->name; name_values['s'] = i.screen->name; - boost::filesystem::path out = directory / (name_format.get(name_values) + ".xml"); + boost::filesystem::path out = directory / (name_format.get(name_values, ".xml")); i.kdm.as_xml (out); } }