+ DCPTime p;
+ p = i->position();
+ if (dynamic_pointer_cast<TextCaptionFileContent>(i) && i->paths_valid()) {
+ /* Rather special case; if we select a text subtitle file jump to its
+ first subtitle.
+ */
+ TextCaptionFile ts (dynamic_pointer_cast<TextCaptionFileContent>(i));
+ if (ts.first()) {
+ p += DCPTime(ts.first().get(), _film->active_frame_rate_change(i->position()));
+ }
+ }
+ if (!go_to || p < go_to.get()) {
+ go_to = p;