Apply the same rules to closed captions.
[libdcp.git] / src / reel_closed_caption_asset.h
index 6ed50ae01125a2d4f1dbf32673ae8056fd7160b7..13d50429b07be06b28660177cb5d364db2d54c76 100644 (file)
 #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 () {