From aab6630b945371038cc49e456a766ae45cab1f47 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 8 Oct 2021 12:08:10 +0200 Subject: Fix problems when adding KDMs to a VF, before adding the OV. If we have a KDM which contains keys for all the assets referred to by a VF (even the ones in the OV) we would previously throw an exception because we tried to give the KDM to the resolved assets when it was given to the Reel. Here we change things so that the addition of KDMs to assets can be deferred if the asset is not yet resolved. --- test/verify_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/verify_test.cc') diff --git a/test/verify_test.cc b/test/verify_test.cc index 62bb7f31..707eed21 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -1961,7 +1961,7 @@ BOOST_AUTO_TEST_CASE (verify_invalid_sound_frame_rate) auto reel_picture = make_shared(picture, 0); auto reel = make_shared(); reel->add (reel_picture); - auto sound = simple_sound (dir, "foo", dcp::MXFMetadata(), "de-DE", 24, 96000); + auto sound = simple_sound (dir, "foo", dcp::MXFMetadata(), "de-DE", 24, 96000, boost::none); auto reel_sound = make_shared(sound, 0); reel->add (reel_sound); reel->add (simple_markers()); -- cgit v1.2.3