Fix saving images with subtitles for frames other than the first

This commit is contained in:
Thomas Goyne 2014-06-03 07:20:54 -07:00
parent 4e5b81973b
commit 5fcb287ed0

View file

@ -288,7 +288,8 @@ struct video_focus_seek final : public validator_video_loaded {
};
wxImage get_image(agi::Context *c, bool raw) {
return GetImage(*c->project->VideoProvider()->GetFrame(c->videoController->GetFrameN(), raw));
auto frame = c->videoController->GetFrameN();
return GetImage(*c->project->VideoProvider()->GetFrame(frame, c->project->Timecodes().TimeAtFrame(frame), raw));
}
struct video_frame_copy final : public validator_video_loaded {