AveryYang
07-04-2010 03:18:32
Hi,
I get a problem of using the Ogre Video Plugin in Ogre.
The problem detail:
After I loaded a video, I will call mClip->stop() to stop the video.
And then when I want play the video, I call mClip->seek(0.0f) first, then mClip->play() immediately.
The problem happened while I check the mClip->isDone() in frameStarted(evt) (Ogre engine function),
the mClip->isDone() will return true and the video doesn't be shown in any frame.
I trace the video plugin source code in svn, and I think it's a bug in the TheoraVideoClip.cpp line 212.
Because I called the mClip->play(), but the mClip->seek(0.0f) has not been seek the position,
so the mTimer->getTime() will bigger than time, and then the frame will be dropped.
Then my video is lost forever.
Is there a solution for the problem or it will be fixed in the next RC?
Thanks for reading and please forgive my English failed.
Sincerely,
Avery
I get a problem of using the Ogre Video Plugin in Ogre.
The problem detail:
After I loaded a video, I will call mClip->stop() to stop the video.
And then when I want play the video, I call mClip->seek(0.0f) first, then mClip->play() immediately.
The problem happened while I check the mClip->isDone() in frameStarted(evt) (Ogre engine function),
the mClip->isDone() will return true and the video doesn't be shown in any frame.
I trace the video plugin source code in svn, and I think it's a bug in the TheoraVideoClip.cpp line 212.
Because I called the mClip->play(), but the mClip->seek(0.0f) has not been seek the position,
so the mTimer->getTime() will bigger than time, and then the frame will be dropped.
Then my video is lost forever.
Is there a solution for the problem or it will be fixed in the next RC?
Thanks for reading and please forgive my English failed.
Sincerely,
Avery