aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2012-11-24 01:04:13 -0500
committerMatthew Hoops2012-11-24 01:04:13 -0500
commit5cf0bfaab97955fe4d41afc2d64f8226ba74b9b6 (patch)
tree145b7376abf94805b530a28eff5d1ecea23c6d3f /engines/pegasus
parentdb908fcdc40b1b337c1e07ecdb76a326ace005ba (diff)
downloadscummvm-rg350-5cf0bfaab97955fe4d41afc2d64f8226ba74b9b6.tar.gz
scummvm-rg350-5cf0bfaab97955fe4d41afc2d64f8226ba74b9b6.tar.bz2
scummvm-rg350-5cf0bfaab97955fe4d41afc2d64f8226ba74b9b6.zip
PEGASUS: Use the new VideoDecoder::setRate code
The filling station now plays at the proper speed
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/movie.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/pegasus/movie.cpp b/engines/pegasus/movie.cpp
index 75c287c7a6..59814a753d 100644
--- a/engines/pegasus/movie.cpp
+++ b/engines/pegasus/movie.cpp
@@ -161,9 +161,10 @@ void Movie::setTime(const TimeValue time, const TimeScale scale) {
}
void Movie::setRate(const Common::Rational rate) {
- if (rate != 1 && rate != 0) {
- warning("Cannot set movie rate");
- start();
+ if (_video) {
+ _video->setRate(rate);
+
+ TimeBase::setRate(_video->getRate());
return;
}