mirror of https://github.com/odrling/Aegisub
Fix saving images with subtitles for frames other than the first
This commit is contained in:
parent
4e5b81973b
commit
5fcb287ed0
|
@ -288,7 +288,8 @@ struct video_focus_seek final : public validator_video_loaded {
|
||||||
};
|
};
|
||||||
|
|
||||||
wxImage get_image(agi::Context *c, bool raw) {
|
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 {
|
struct video_frame_copy final : public validator_video_loaded {
|
||||||
|
|
Loading…
Reference in New Issue