From: Carl Hetherington Date: Mon, 17 Jan 2022 19:31:00 +0000 (+0100) Subject: Fix build with new libdcp. X-Git-Tag: checked-for-v2.16.x~62 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b082cebf0bea15ea94a5be9eda6de2f5eb8cf3dd Fix build with new libdcp. --- diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 9d196a684..f67150449 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -216,7 +216,7 @@ DCPExaminer::DCPExaminer (shared_ptr content, bool tolerant) LOG_GENERAL ("Closed caption %1 of reel %2 found", j->id(), i->id()); _text_count[static_cast(TextType::CLOSED_CAPTION)]++; - _dcp_text_tracks.push_back (DCPTextTrack(j->annotation_text(), try_to_parse_language(j->language()))); + _dcp_text_tracks.push_back (DCPTextTrack(j->annotation_text().get_value_or(""), try_to_parse_language(j->language()))); } if (i->main_markers ()) {