aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_video.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-01-01 19:57:03 +0100
committerBastien Bouclet2018-01-01 20:05:47 +0100
commitcf1171d4d9b43eba525439da82db16cd4aac0414 (patch)
tree41011382802b94f2f2fb92c910147768112b7599 /engines/mohawk/riven_video.cpp
parentd6078ea4066ab11911d1bd8a02f282c75bc595d8 (diff)
downloadscummvm-rg350-cf1171d4d9b43eba525439da82db16cd4aac0414.tar.gz
scummvm-rg350-cf1171d4d9b43eba525439da82db16cd4aac0414.tar.bz2
scummvm-rg350-cf1171d4d9b43eba525439da82db16cd4aac0414.zip
MOHAWK: RIVEN: Rewind videos that are played until their end
When videos are skipped, they would sometimes not quite be seeked to the last frame. In that case, when they are played again without being restarted, they would end immediatly. Now videos are automatically rewinded when they end or are skipped so that they always start from the beginning when played again. Fixes #10389.
Diffstat (limited to 'engines/mohawk/riven_video.cpp')
-rw-r--r--engines/mohawk/riven_video.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/riven_video.cpp b/engines/mohawk/riven_video.cpp
index 14af3e566b..9bd185ed5d 100644
--- a/engines/mohawk/riven_video.cpp
+++ b/engines/mohawk/riven_video.cpp
@@ -255,6 +255,7 @@ void RivenVideo::playBlocking(int32 endTime) {
if (playTillEnd) {
disable();
stop();
+ seek(0);
}
// Execute the stored opcode