From 828c320df8c56208a8834971f5d937ce06a4edf2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 17 Jan 2013 20:16:10 +0000 Subject: Pull entry point out of the constructor. --- src/dcp.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/dcp.cc') 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 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 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 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; -- cgit v1.2.3