in the case of closed captions with multiple tracks. Don't reuse the
same font objects in this case, otherwise we will start with something
like font, disambiguate it to 0_font, then disambiguate _that_ to
0_0_font.
* by prepending the reel number. We do the same disambiguation when emitting the
* subtitles in the DCP decoder.
*/
- font->set_id(id_for_font_in_reel(font->id(), reel_number));
- text->add_font(font);
+ auto font_copy = make_shared<dcpomatic::Font>(*font);
+ font_copy->set_id(id_for_font_in_reel(font->id(), reel_number));
+ text->add_font(font_copy);
}
++reel_number;
}