diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-13 01:38:56 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-13 01:38:56 +0200 |
| commit | 51ae14c7e304d4fbc8d7524d584f3f4762d51f67 (patch) | |
| tree | 3c27f3924ddb4b982338384ae759e858d6cc697b /src/reel_file_asset.h | |
| parent | ee23803a3dced33ae93346dd1e5cb6453d873023 (diff) | |
Make ReelAsset the parent of ReelFileAsset.
Diffstat (limited to 'src/reel_file_asset.h')
| -rw-r--r-- | src/reel_file_asset.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/reel_file_asset.h b/src/reel_file_asset.h index 070a3e0f..042f94b4 100644 --- a/src/reel_file_asset.h +++ b/src/reel_file_asset.h @@ -41,6 +41,7 @@ #define LIBDCP_REEL_FILE_ASSET_H +#include "reel_asset.h" #include "ref.h" #include <boost/optional.hpp> #include <string> @@ -49,10 +50,10 @@ namespace dcp { -class ReelFileAsset +class ReelFileAsset : public ReelAsset { public: - explicit ReelFileAsset (std::shared_ptr<Asset> asset); + ReelFileAsset (std::shared_ptr<Asset> asset, std::string id, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point); explicit ReelFileAsset (std::shared_ptr<const cxml::Node> node); /** @return a Ref to our actual asset */ @@ -82,12 +83,12 @@ protected: template <class T> std::shared_ptr<T> asset_of_type () const { - return std::dynamic_pointer_cast<T> (_asset_ref.asset ()); + return std::dynamic_pointer_cast<T>(_asset_ref.asset()); } template <class T> std::shared_ptr<T> asset_of_type () { - return std::dynamic_pointer_cast<T> (_asset_ref.asset ()); + return std::dynamic_pointer_cast<T>(_asset_ref.asset()); } /** Reference to the asset (MXF or XML file) that this reel entry |
