From fbe2784c136fa1550815babfce89589f66b35a29 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Jul 2016 16:21:40 +0100 Subject: Simplification of name format stuff. --- src/lib/util.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/util.cc') diff --git a/src/lib/util.cc b/src/lib/util.cc index 09f32dfda..59974c24c 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -620,8 +620,8 @@ string video_asset_filename (shared_ptr asset) { dcp::NameFormat::Map values; - values["type"] = "j2c"; - values["id"] = asset->id(); + values['t'] = "j2c"; + values['i'] = asset->id(); return Config::instance()->dcp_filename_format().get(values) + ".mxf"; } @@ -629,8 +629,8 @@ string audio_asset_filename (shared_ptr asset) { dcp::NameFormat::Map values; - values["type"] = "pcm"; - values["id"] = asset->id(); + values['t'] = "pcm"; + values['i'] = asset->id(); return Config::instance()->dcp_filename_format().get(values) + ".mxf"; } -- cgit v1.2.3