diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-20 02:28:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-20 02:28:22 +0100 |
| commit | aac2c88908c1c7787ce0fde8e1b4ddf9de509828 (patch) | |
| tree | 142fc82994342bdcabb374a29c8aa1fd7d260e18 /src | |
| parent | f614b4526cd06a4d28b46bd2d98a55d56b97b14f (diff) | |
Apply the same rules to closed captions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/reel_closed_caption_asset.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/reel_closed_caption_asset.h b/src/reel_closed_caption_asset.h index 6ed50ae0..13d50429 100644 --- a/src/reel_closed_caption_asset.h +++ b/src/reel_closed_caption_asset.h @@ -38,9 +38,10 @@ #ifndef LIBDCP_REEL_CLOSED_CAPTION_ASSET_H #define LIBDCP_REEL_CLOSED_CAPTION_ASSET_H +#include "language_tag.h" +#include "subtitle_asset.h" #include "reel_asset.h" #include "reel_mxf.h" -#include "subtitle_asset.h" namespace dcp { @@ -62,8 +63,8 @@ public: return asset_of_type<SubtitleAsset> (); } - void set_language (std::string l) { - _language = l; + void set_language (dcp::LanguageTag l) { + _language = l.to_string(); } void unset_language () { |
