summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-04 11:15:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-04 11:15:35 +0100
commitfca67f5661c55db6d4206cd17f4cdcf7ede865da (patch)
treebd1d4f8fa6fa7befa30c78c646f636e31a6b3e80 /src/cpl.cc
parentaf87bfc82beee0b0600558c84c3843dfd5a252f6 (diff)
parenta7bf2931ce47b1f3a2e4dbea0cf642d955619ac9 (diff)
Merge master.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 18526b24..10a83078 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -103,7 +103,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;
@@ -111,7 +112,6 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
}
} else {
-
try {
picture.reset (new StereoPictureAsset (
_directory,
@@ -122,6 +122,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) {
@@ -141,6 +142,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;
@@ -155,6 +157,9 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
asset_map->asset_from_id ((*i)->asset_list->main_subtitle->id)->chunks.front()->path
)
);
+
+ subtitle->set_entry_point ((*i)->asset_list->main_subtitle->entry_point);
+ subtitle->set_duration ((*i)->asset_list->main_subtitle->duration);
}
_reels.push_back (shared_ptr<Reel> (new Reel (picture, sound, subtitle)));