_sequencing = true;
+ /* Keep track of the content that we've set the position of so that we don't
+ do it twice.
+ */
+ ContentList placed;
+
/* Video */
DCPTime next_left;
vc->set_position (next_left);
next_left = vc->end();
}
+
+ placed.push_back (vc);
}
/* Subtitles */
DCPTime next;
BOOST_FOREACH (shared_ptr<Content> i, _content) {
shared_ptr<SubtitleContent> sc = dynamic_pointer_cast<SubtitleContent> (i);
- if (!sc) {
+ if (!sc || !sc->has_subtitles() || find (placed.begin(), placed.end(), i) != placed.end()) {
continue;
}