Skip to content

Commit

Permalink
VIDEO: Convert FlicDecoder to the new AdvancedVideoDecoder API
Browse files Browse the repository at this point in the history
The video no longer automatically loops (unused in-tree) and must have rewind() called manually
  • Loading branch information
Matthew Hoops committed Aug 12, 2012
1 parent 48c591a commit 5db4207
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 178 deletions.
4 changes: 3 additions & 1 deletion engines/tucker/sequences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "audio/decoders/wave.h"

#include "graphics/palette.h"
#include "graphics/surface.h"

#include "tucker/tucker.h"
#include "tucker/graphics.h"
Expand Down Expand Up @@ -749,6 +750,7 @@ void AnimationSequencePlayer::openAnimation(int index, const char *fileName) {
_seqNum = 1;
return;
}
_flicPlayer[index].start();
_flicPlayer[index].decodeNextFrame();
if (index == 0) {
getRGBPalette(index);
Expand Down Expand Up @@ -801,7 +803,7 @@ void AnimationSequencePlayer::playIntroSeq19_20() {
if (_flicPlayer[0].getCurFrame() >= 115) {
surface = _flicPlayer[1].decodeNextFrame();
if (_flicPlayer[1].endOfVideo())
_flicPlayer[1].reset();
_flicPlayer[1].rewind();
}

bool framesLeft = decodeNextAnimationFrame(0, false);
Expand Down
Loading

0 comments on commit 5db4207

Please sign in to comment.