summaryrefslogtreecommitdiff
path: root/src/reel_smpte_closed_caption_asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reel_smpte_closed_caption_asset.h')
-rw-r--r--src/reel_smpte_closed_caption_asset.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/reel_smpte_closed_caption_asset.h b/src/reel_smpte_closed_caption_asset.h
index 889ce5f6..8b38d2ad 100644
--- a/src/reel_smpte_closed_caption_asset.h
+++ b/src/reel_smpte_closed_caption_asset.h
@@ -55,12 +55,17 @@ public:
ReelSMPTEClosedCaptionAsset (std::shared_ptr<SMPTESubtitleAsset> asset, Fraction edit_rate, int64_t instrinsic_duration, int64_t entry_point);
explicit ReelSMPTEClosedCaptionAsset (std::shared_ptr<const cxml::Node>);
- xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override;
+ std::shared_ptr<SMPTESubtitleAsset> smpte_asset () {
+ return asset_of_type<SMPTESubtitleAsset>();
+ }
- std::shared_ptr<SMPTESubtitleAsset> smpte_asset () const {
- return std::dynamic_pointer_cast<SMPTESubtitleAsset>(asset());
+ std::shared_ptr<const SMPTESubtitleAsset> smpte_asset () const {
+ return asset_of_type<const SMPTESubtitleAsset>();
}
+ xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override;
+
+
private:
boost::optional<std::string> key_type () const override {
return std::string("MDSK");