From cbd4450197a083bf58bda510e626f73ba583cb66 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Jul 2018 15:16:18 +0100 Subject: Basics of multiple captions per content so that DCPContent can hold subs and closed captions. --- src/lib/dcp_encoder.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/dcp_encoder.cc') diff --git a/src/lib/dcp_encoder.cc b/src/lib/dcp_encoder.cc index 541c23b6c..f518aefef 100644 --- a/src/lib/dcp_encoder.cc +++ b/src/lib/dcp_encoder.cc @@ -64,8 +64,10 @@ DCPEncoder::DCPEncoder (shared_ptr film, weak_ptr job) _player_caption_connection = _player->Caption.connect (bind (&DCPEncoder::caption, this, _1, _2, _3)); BOOST_FOREACH (shared_ptr c, film->content ()) { - if (c->caption && c->caption->use() && !c->caption->burn()) { - _non_burnt_subtitles = true; + BOOST_FOREACH (shared_ptr i, c->caption) { + if (i->use() && !i->burn()) { + _non_burnt_subtitles = true; + } } } } -- cgit v1.2.3