summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-02 17:20:04 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-02 17:20:04 +0100
commit568d433830710baa7b0c64a5b7491758beb95b1c (patch)
treea37742ed23776b3df3fe2f05900aaaa5cb9aa551 /src/dcp.cc
parent49fb66ee26be51bee67ae552c9cf4f8d21495b79 (diff)
Move edit rate / durations / entry point etc. into Asset from MXFAsset.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index bac266ab..3fe69e40 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -365,7 +365,8 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
)
);
- picture->set_entry_point ((*i)->asset_list->main_picture->entry_point);
+ picture->set_entry_point (p->entry_point);
+ picture->set_duration (p->duration);
} catch (MXFFileError) {
if (require_mxfs) {
throw;
@@ -384,6 +385,7 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
);
picture->set_entry_point (p->entry_point);
+ picture->set_duration (p->duration);
} catch (MXFFileError) {
if (require_mxfs) {
@@ -403,6 +405,7 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
);
sound->set_entry_point ((*i)->asset_list->main_sound->entry_point);
+ sound->set_duration ((*i)->asset_list->main_sound->duration);
} catch (MXFFileError) {
if (require_mxfs) {
throw;