From 2d60083498861ac30c751dbf0ca387573df6dc68 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 15 Mar 2019 00:49:41 +0000 Subject: Move asset refs and hash from ReelAsset to ReelMXF. --- src/verify.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/verify.cc') diff --git a/src/verify.cc b/src/verify.cc index 4a656874..9ab9b150 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -61,19 +61,19 @@ enum Result { }; static Result -verify_asset (shared_ptr dcp, shared_ptr reel_asset, function progress) +verify_asset (shared_ptr dcp, shared_ptr reel_mxf, function progress) { - string const actual_hash = reel_asset->asset_ref()->hash(progress); + string const actual_hash = reel_mxf->asset_ref()->hash(progress); list > pkls = dcp->pkls(); /* We've read this DCP in so it must have at least one PKL */ DCP_ASSERT (!pkls.empty()); - shared_ptr asset = reel_asset->asset_ref().asset(); + shared_ptr asset = reel_mxf->asset_ref().asset(); optional pkl_hash; BOOST_FOREACH (shared_ptr i, pkls) { - pkl_hash = i->hash (reel_asset->asset_ref()->id()); + pkl_hash = i->hash (reel_mxf->asset_ref()->id()); if (pkl_hash) { break; } @@ -81,7 +81,7 @@ verify_asset (shared_ptr dcp, shared_ptr reel_asset, function cpl_hash = reel_asset->hash(); + optional cpl_hash = reel_mxf->hash(); if (cpl_hash && *cpl_hash != *pkl_hash) { return RESULT_CPL_PKL_DIFFER; } -- cgit v1.2.3