Build fix for new libdcp.
authorCarl Hetherington <cth@carlh.net>
Mon, 17 Jan 2022 23:08:20 +0000 (00:08 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 18 Jan 2022 21:50:10 +0000 (22:50 +0100)
src/lib/dcp_digest_file.cc

index 9e9ca71147232bf54b6b79347175747f31a54a9e..74d78b44b0b284629f1bf7756c730aeef83e084b 100644 (file)
@@ -44,7 +44,7 @@ void add_asset(string film_key, shared_ptr<R> reel_asset, shared_ptr<A> asset, x
        if (asset) {
                auto out = reel->add_child(name);
                out->add_child("Id")->add_child_text("urn:uuid:" + asset->id());
-               out->add_child("AnnotationText")->add_child_text(reel_asset->annotation_text());
+               out->add_child("AnnotationText")->add_child_text(reel_asset->annotation_text().get_value_or(""));
                if (asset->key_id()) {
                        out->add_child("KeyId")->add_child_text("urn:uuid:" + asset->key_id().get());
                        out->add_child("Key")->add_child_text(asset->key() ? asset->key()->hex() : film_key);