diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-09 13:12:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:22 +0100 |
| commit | 0b39df958f534068950669a763be7b4602740107 (patch) | |
| tree | 9427106257d4309fc858a94d3c40055d0140fb89 /src/sound_asset.h | |
| parent | 66f5e0b713f4ae4066e92ff741d5d71f827a1c37 (diff) | |
Store sound asset language as a string, but set it as a
dcp::LanguageTag.
This makes it work the same as other language tags, and tolerates
bad values while trying not to allow them to be created.
Diffstat (limited to 'src/sound_asset.h')
| -rw-r--r-- | src/sound_asset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h index 8e55aef7..91a213b8 100644 --- a/src/sound_asset.h +++ b/src/sound_asset.h @@ -86,7 +86,7 @@ public: return _intrinsic_duration; } - LanguageTag language () const { + std::string language () const { return _language; } @@ -107,7 +107,7 @@ private: int64_t _intrinsic_duration; int _channels; ///< number of channels int _sampling_rate; ///< sampling rate in Hz - LanguageTag _language; + std::string _language; }; } |
