X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Freel_writer.cc;h=c4df58fe70830c0e362b32a5465fe8d1eb3f5788;hb=bea1b9f9c77c721afd15bab392a86343f8d6b83a;hp=a927770a5858e55698dc83a86df8787f2860475f;hpb=60adc5a3312a9412b8988a0e2e82724779b5b84e;p=dcpomatic.git diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index a927770a5..c4df58fe7 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -602,8 +602,10 @@ ReelWriter::create_reel (list const & refs, list a = maybe_add_text ( i->second, reel_picture_asset->actual_duration(), reel, refs, fonts, _film, _period ); - a->set_annotation_text (i->first.name); - a->set_language (i->first.language); + if (a) { + a->set_annotation_text (i->first.name); + a->set_language (i->first.language); + } } Film::Markers markers = _film->markers ();