Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / src / wx / text_view.cc
index 16ec2213f47f6f2d62f260320377b357027baade..271e02d41a357a4050a27715362c0d921a0f0564 100644 (file)
@@ -35,6 +35,7 @@ using boost::shared_ptr;
 using boost::weak_ptr;
 using boost::bind;
 using boost::dynamic_pointer_cast;
+using namespace dcpomatic;
 
 TextView::TextView (
        wxWindow* parent, shared_ptr<Film> film, shared_ptr<Content> content, shared_ptr<TextContent> text, shared_ptr<Decoder> decoder, weak_ptr<FilmViewer> viewer
@@ -140,5 +141,5 @@ TextView::subtitle_selected (wxListEvent& ev)
        DCPOMATIC_ASSERT (lc);
        shared_ptr<FilmViewer> fv = _film_viewer.lock ();
        DCPOMATIC_ASSERT (fv);
-       fv->set_position (lc, _start_times[ev.GetIndex()]);
+       fv->seek (lc, _start_times[ev.GetIndex()], true);
 }