From 742961d2c2cd446fcd96033403b35b0ae111401e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 2 Jun 2023 22:21:52 +0200 Subject: Give filler subtitle reels nodes in SMPTE (#2547). --- src/lib/reel_writer.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index aae2a6273..fc78740bb 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -823,6 +823,7 @@ shared_ptr ReelWriter::empty_text_asset (TextType type, optional track, bool with_dummy) const { shared_ptr asset; + optional font; auto lang = film()->subtitle_languages(); if (film()->interop()) { @@ -857,7 +858,7 @@ ReelWriter::empty_text_asset (TextType type, optional track, bool if (with_dummy) { asset->add( std::make_shared( - optional(), + font, false, false, false, @@ -880,6 +881,12 @@ ReelWriter::empty_text_asset (TextType type, optional track, bool 0 ) ); + + if (!film()->interop()) { + /* We must have a LoadFont since we have a Text */ + font = "font"; + asset->ensure_font(*font, _default_font); + } } return asset; -- cgit v1.2.3