diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-28 01:21:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-28 01:21:28 +0100 |
| commit | 034d7176177043dc4cb4518ae6a946efe401b809 (patch) | |
| tree | ae7187d3d5751b3d23c300118aeaf70e8b163d49 /src/lib/dcp_content.h | |
| parent | 66b8fe87f90e812672d213387fe08d734464ac9f (diff) | |
Copy audio language when setting up a project from a DCP (#3009).
Diffstat (limited to 'src/lib/dcp_content.h')
| -rw-r--r-- | src/lib/dcp_content.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 8545adf06..a0a18703a 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -36,6 +36,7 @@ #include <libcxml/cxml.h> #include <dcp/content_kind.h> #include <dcp/encrypted_kdm.h> +#include <dcp/language_tag.h> #include <dcp/rating.h> @@ -191,6 +192,13 @@ public: int active_audio_channels() const; + /** @return a guess of the DCP's audio language; if there are multiple reels, + * and they have different langauges, this could be wrong. + */ + boost::optional<dcp::LanguageTag> audio_language () const { + return _audio_language; + } + void check_font_ids(); private: @@ -241,6 +249,7 @@ private: EnumIndexedVector<bool, TextType> _has_non_zero_entry_point; boost::optional<int> _active_audio_channels; + boost::optional<dcp::LanguageTag> _audio_language; }; |
