diff options
Diffstat (limited to 'src/reel_interop_closed_caption_asset.h')
| -rw-r--r-- | src/reel_interop_closed_caption_asset.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/reel_interop_closed_caption_asset.h b/src/reel_interop_closed_caption_asset.h index bb5b5cec..ec954346 100644 --- a/src/reel_interop_closed_caption_asset.h +++ b/src/reel_interop_closed_caption_asset.h @@ -54,12 +54,16 @@ public: ReelInteropClosedCaptionAsset (std::shared_ptr<InteropSubtitleAsset> asset, Fraction edit_rate, int64_t instrinsic_duration, int64_t entry_point); explicit ReelInteropClosedCaptionAsset (std::shared_ptr<const cxml::Node>); - xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override; + std::shared_ptr<const InteropSubtitleAsset> interop_asset () const { + return asset_of_type<const InteropSubtitleAsset>(); + } - std::shared_ptr<InteropSubtitleAsset> interop_asset () const { - return std::dynamic_pointer_cast<InteropSubtitleAsset>(asset()); + std::shared_ptr<InteropSubtitleAsset> interop_asset () { + return asset_of_type<InteropSubtitleAsset>(); } + xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override; + private: std::string cpl_node_name (Standard) const; std::pair<std::string, std::string> cpl_node_namespace () const override; |
