Don't ignore loaded timecodes when converting frames to times for the subtitle renderer

This commit is contained in:
Thomas Goyne 2012-10-02 12:55:28 -07:00
parent 57a253004d
commit 8fad077e88
1 changed files with 2 additions and 2 deletions

View File

@ -291,11 +291,11 @@ void VideoContext::JumpToTime(int ms, agi::vfr::Time end) {
} }
void VideoContext::GetFrameAsync(int n) { void VideoContext::GetFrameAsync(int n) {
provider->RequestFrame(n, videoFPS.TimeAtFrame(n) / 1000.0); provider->RequestFrame(n, TimeAtFrame(n) / 1000.0);
} }
std::tr1::shared_ptr<AegiVideoFrame> VideoContext::GetFrame(int n, bool raw) { std::tr1::shared_ptr<AegiVideoFrame> VideoContext::GetFrame(int n, bool raw) {
return provider->GetFrame(n, videoFPS.TimeAtFrame(n) / 1000.0, raw); return provider->GetFrame(n, TimeAtFrame(n) / 1000.0, raw);
} }
int VideoContext::GetWidth() const { int VideoContext::GetWidth() const {