From db22f81ccce9e1a5f205e6d8b3c0631fc039a173 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Jan 2024 23:34:35 +0100 Subject: Fix handling of empty font IDs and default DCP fonts (#2721) (part of #2722). Previously we used an empty font ID as the default for when a subtitle has no Font, but in #2721 we saw a DCP with an empty font ID which raised an assertion (because we'd already added our default font with the empty ID). Here we try to fix this (and also make the default font correctly be that from the first ). --- src/lib/dcp_subtitle_content.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/dcp_subtitle_content.h') diff --git a/src/lib/dcp_subtitle_content.h b/src/lib/dcp_subtitle_content.h index 5949f8b0b..89a6f26a2 100644 --- a/src/lib/dcp_subtitle_content.h +++ b/src/lib/dcp_subtitle_content.h @@ -35,5 +35,7 @@ public: dcpomatic::DCPTime approximate_length () const override; private: + void add_fonts(std::shared_ptr content, std::shared_ptr subtitle_asset); + dcpomatic::ContentTime _length; }; -- cgit v1.2.3