diff options
Diffstat (limited to 'src/reel_subtitle_asset.h')
| -rw-r--r-- | src/reel_subtitle_asset.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/reel_subtitle_asset.h b/src/reel_subtitle_asset.h index a4e674ba..95013d34 100644 --- a/src/reel_subtitle_asset.h +++ b/src/reel_subtitle_asset.h @@ -65,14 +65,18 @@ public: ReelSubtitleAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point); explicit ReelSubtitleAsset (std::shared_ptr<const cxml::Node>); - xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const; - - bool equals (std::shared_ptr<const ReelSubtitleAsset>, EqualityOptions, NoteHandler) const; + std::shared_ptr<const SubtitleAsset> asset () const { + return asset_of_type<const SubtitleAsset>(); + } - std::shared_ptr<SubtitleAsset> asset () const { - return std::dynamic_pointer_cast<SubtitleAsset>(_asset_ref.asset()); + std::shared_ptr<SubtitleAsset> asset () { + return asset_of_type<SubtitleAsset>(); } + xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override; + + bool equals (std::shared_ptr<const ReelSubtitleAsset>, EqualityOptions, NoteHandler) const; + void set_language (dcp::LanguageTag language); boost::optional<std::string> language () const { @@ -89,7 +93,7 @@ protected: private: friend struct ::verify_invalid_language1; - std::string cpl_node_name (Standard standard) const; + std::string cpl_node_name (Standard standard) const override; }; |
