diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-29 16:21:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-29 16:21:40 +0100 |
| commit | fbe2784c136fa1550815babfce89589f66b35a29 (patch) | |
| tree | 2099493253d82c71e7a1f2036bcbcbf980ab9f95 /src/lib/util.cc | |
| parent | fe9d2a290682021cd12a00bf21fa4db3012e2049 (diff) | |
Simplification of name format stuff.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<dcp::PictureAsset> 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<dcp::SoundAsset> 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"; } |
