using boost::weak_ptr;
using boost::bind;
using boost::dynamic_pointer_cast;
+using namespace dcpomatic;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
TextView::TextView (
wxWindow* parent, shared_ptr<Film> film, shared_ptr<Content> content, shared_ptr<TextContent> text, shared_ptr<Decoder> decoder, weak_ptr<FilmViewer> viewer
i->Stop.connect (bind (&TextView::data_stop, this, _1));
}
}
- while (!decoder->pass (film)) {}
+ while (!decoder->pass ()) {}
SetSizerAndFit (sizer);
}
DCPOMATIC_ASSERT (lc);
shared_ptr<FilmViewer> fv = _film_viewer.lock ();
DCPOMATIC_ASSERT (fv);
- fv->seek (lc, _start_times[ev.GetIndex()], true);
+ /* Add on a frame here to work around any rounding errors and make sure land in the subtitle */
+ fv->seek (lc, _start_times[ev.GetIndex()] + ContentTime::from_frames(1, _frc->source), true);
}