diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-13 23:50:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-13 23:50:28 +0200 |
| commit | 4bd57fbbac67ac04ec47a9765b9f278aa1691851 (patch) | |
| tree | 55a607e6ac16fa52f69522312f2464443fac5aeb /src/reel_interop_subtitle_asset.h | |
| parent | 488e3d1bd5e6b17d49f6db4df14c64f4b64db89b (diff) | |
Tidying a few things up.
Diffstat (limited to 'src/reel_interop_subtitle_asset.h')
| -rw-r--r-- | src/reel_interop_subtitle_asset.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/reel_interop_subtitle_asset.h b/src/reel_interop_subtitle_asset.h index 83a7ab25..7e90e9e0 100644 --- a/src/reel_interop_subtitle_asset.h +++ b/src/reel_interop_subtitle_asset.h @@ -54,8 +54,12 @@ public: ReelInteropSubtitleAsset (std::shared_ptr<SubtitleAsset> asset, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point); explicit ReelInteropSubtitleAsset (std::shared_ptr<const cxml::Node>); - std::shared_ptr<InteropSubtitleAsset> interop_asset () const { - return std::dynamic_pointer_cast<InteropSubtitleAsset>(asset()); + std::shared_ptr<const InteropSubtitleAsset> interop_asset () const { + return asset_of_type<const InteropSubtitleAsset>(); + } + + std::shared_ptr<InteropSubtitleAsset> interop_asset () { + return asset_of_type<InteropSubtitleAsset>(); } }; |
