summaryrefslogtreecommitdiff
path: root/src/lib/film.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-20 23:43:34 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-24 16:59:24 +0100
commit816a7b7a9d9c3cae7565cec139bf28068853f94d (patch)
tree718644b178b68fd03e2b1ea18c7bec96da5de4e4 /src/lib/film.cc
parente93b66f4236ec25dbd0603bbe74c904b53180e91 (diff)
Basic support for variable-Z 3D subtitles.
Diffstat (limited to 'src/lib/film.cc')
-rw-r--r--src/lib/film.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 6adc7dff4..5c3b6cee9 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -442,13 +442,13 @@ Film::metadata(bool with_content_paths) const
for (auto i: _content_versions) {
cxml::add_text_child(root, "ContentVersion", i);
}
- cxml::add_text_child(root, "NameLanguage", _name_language.to_string());
+ cxml::add_text_child(root, "NameLanguage", _name_language.as_string());
cxml::add_text_child(root, "TerritoryType", territory_type_to_string(_territory_type));
if (_release_territory) {
cxml::add_text_child(root, "ReleaseTerritory", _release_territory->subtag());
}
if (_sign_language_video_language) {
- cxml::add_text_child(root, "SignLanguageVideoLanguage", _sign_language_video_language->to_string());
+ cxml::add_text_child(root, "SignLanguageVideoLanguage", _sign_language_video_language->as_string());
}
cxml::add_text_child(root, "VersionNumber", fmt::to_string(_version_number));
cxml::add_text_child(root, "Status", dcp::status_to_string(_status));
@@ -475,7 +475,7 @@ Film::metadata(bool with_content_paths) const
cxml::add_text_child(root, "UserExplicitContainer", _user_explicit_container ? "1" : "0");
cxml::add_text_child(root, "UserExplicitResolution", _user_explicit_resolution ? "1" : "0");
if (_audio_language) {
- cxml::add_text_child(root, "AudioLanguage", _audio_language->to_string());
+ cxml::add_text_child(root, "AudioLanguage", _audio_language->as_string());
}
_playlist->as_xml(
cxml::add_child(root, "Playlist"),
@@ -1004,7 +1004,7 @@ Film::isdcf_name(bool if_created_now) const
auto entry_for_language = [](dcp::LanguageTag const& tag) {
/* Look up what we should be using for this tag in the DCNC name */
for (auto const& dcnc: dcp::dcnc_tags()) {
- if (tag.to_string() == dcnc.first) {
+ if (tag.as_string() == dcnc.first) {
return dcnc.second;
}
}