BGE VideoTexture: fix VideoFFmpeg range attribute + error message.

This commit is contained in:
Benoit Bolsee
2009-06-06 21:54:12 +00:00
parent 580e69b365
commit 80571c0408
2 changed files with 3 additions and 2 deletions

View File

@@ -117,6 +117,7 @@ bool VideoFFmpeg::release()
}
m_codec = NULL;
m_status = SourceStopped;
m_lastFrame = -1;
return true;
}
@@ -735,7 +736,7 @@ void VideoFFmpeg::loadFrame (void)
{
// get actual time
double startTime = PIL_check_seconds_timer();
if (m_lastFrame == -1)
if (m_lastFrame == -1 && !m_isFile)
m_startTime = startTime;
double actTime = startTime - m_startTime;
// if video has ended