+ /* XXX: inefficient */
+
+ list<ContentTimePeriod> ctp;
+ double const vfr = _dcp_content->active_video_frame_rate ();
+
+ BOOST_FOREACH (shared_ptr<dcp::Reel> r, _reels) {
+ if (!r->main_subtitle ()) {
+ continue;
+ }
+
+ int64_t const entry_point = r->main_subtitle()->entry_point ();
+
+ list<dcp::SubtitleString> subs = r->main_subtitle()->asset()->subtitles_during (
+ dcp::Time (period.from.seconds(), 1000) - dcp::Time (entry_point, vfr, vfr),
+ dcp::Time (period.to.seconds(), 1000) - dcp::Time (entry_point, vfr, vfr),
+ starting
+ );
+
+ BOOST_FOREACH (dcp::SubtitleString const & s, subs) {
+ ctp.push_back (
+ ContentTimePeriod (
+ ContentTime::from_seconds (s.in().as_seconds ()),
+ ContentTime::from_seconds (s.out().as_seconds ())
+ )
+ );
+ }
+ }
+
+ return ctp;