diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:16:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:16:51 +0100 |
| commit | a75132724be4962225e5cb0f5ef5297e2e78aeee (patch) | |
| tree | 8bd6860f89de21e2ec14226a4eb8d1d6ba87aff4 /src/reel_asset.cc | |
| parent | 1045480655c09c6fdf0d81f5d9714cb218933c19 (diff) | |
Move _intrinsic_duration and _edit_rate up to the MXF class as XML subtitle files do not contain this information (whereas MXF files do).
Diffstat (limited to 'src/reel_asset.cc')
| -rw-r--r-- | src/reel_asset.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/reel_asset.cc b/src/reel_asset.cc index 7987a155..cbb76dd8 100644 --- a/src/reel_asset.cc +++ b/src/reel_asset.cc @@ -42,15 +42,17 @@ ReelAsset::ReelAsset () /** Construct a ReelAsset. * @param content Content that this asset refers to. + * @param edit_rate Edit rate for the content. + * @param intrinsic_duration Intrinsic duration of this content. * @param entry_point Entry point to use in that content. */ -ReelAsset::ReelAsset (boost::shared_ptr<Content> content, int64_t entry_point) +ReelAsset::ReelAsset (boost::shared_ptr<Content> content, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point) : Object (content->id ()) , _content (content) - , _edit_rate (content->edit_rate ()) - , _intrinsic_duration (content->intrinsic_duration ()) + , _edit_rate (edit_rate) + , _intrinsic_duration (intrinsic_duration) , _entry_point (entry_point) - , _duration (_intrinsic_duration - _entry_point) + , _duration (intrinsic_duration - entry_point) , _hash (make_digest (content->file (), 0)) { /* default _annotation_text to the leaf name of our file */ |
