Reset the clock_ to 0 instead of 0.5
This commit is contained in:
@@ -349,16 +349,7 @@ void MovieTexture_Generic::UpdateFrame()
|
|||||||
if (decoder_->EndOfMovie() && loop_) {
|
if (decoder_->EndOfMovie() && loop_) {
|
||||||
LOG->Trace("File \"%s\" looping", GetID().filename.c_str());
|
LOG->Trace("File \"%s\" looping", GetID().filename.c_str());
|
||||||
decoder_->Rollover();
|
decoder_->Rollover();
|
||||||
|
clock_ = 0.0;
|
||||||
// There's a gap in the audio when the music preview loops. This value
|
|
||||||
// is dynamic based on the ending and starting beats (see
|
|
||||||
// GameSoundManager.cpp::StartMusic).
|
|
||||||
//
|
|
||||||
// This means that the video will be off-sync during the loop, since
|
|
||||||
// the movie texture doesn't have access to the SoundManager's offset.
|
|
||||||
// Until it does, we can either freeze at the end of the video banner,
|
|
||||||
// or give it a best effort approximation (0.5 seconds).
|
|
||||||
clock_ = 0.5;
|
|
||||||
}
|
}
|
||||||
else if (decoder_->EndOfMovie()) {
|
else if (decoder_->EndOfMovie()) {
|
||||||
// At the end of the movie, and not looping.
|
// At the end of the movie, and not looping.
|
||||||
|
|||||||
Reference in New Issue
Block a user