summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-17 20:16:10 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-17 20:16:10 +0000
commit828c320df8c56208a8834971f5d937ce06a4edf2 (patch)
treeb9af6538e97ed5d4b845173ec500aa250b8c894e /src/dcp.cc
parent369ba52fe8b3ddeda734692541471c402016a18d (diff)
Pull entry point out of the constructor.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 6c626939..e148c772 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -363,10 +363,11 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
_directory,
asset_map->asset_from_id (p->id)->chunks.front()->path,
_fps,
- (*i)->asset_list->main_picture->entry_point,
(*i)->asset_list->main_picture->duration
)
);
+
+ picture->set_entry_point ((*i)->asset_list->main_picture->entry_point);
} catch (MXFFileError) {
if (require_mxfs) {
throw;
@@ -380,10 +381,12 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
_directory,
asset_map->asset_from_id (p->id)->chunks.front()->path,
_fps,
- p->entry_point,
p->duration
)
);
+
+ picture->set_entry_point (p->entry_point);
+
} catch (MXFFileError) {
if (require_mxfs) {
throw;
@@ -399,10 +402,11 @@ CPL::CPL (string directory, string file, shared_ptr<const AssetMap> asset_map, b
_directory,
asset_map->asset_from_id ((*i)->asset_list->main_sound->id)->chunks.front()->path,
_fps,
- (*i)->asset_list->main_sound->entry_point,
(*i)->asset_list->main_sound->duration
)
);
+
+ sound->set_entry_point ((*i)->asset_list->main_sound->entry_point);
} catch (MXFFileError) {
if (require_mxfs) {
throw;