[Scummvm-git-logs] scummvm master -> cf1171d4d9b43eba525439da82db16cd4aac0414

bgK bastien.bouclet at gmail.com
Mon Jan 1 20:08:10 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cf1171d4d9 MOHAWK: RIVEN: Rewind videos that are played until their end


Commit: cf1171d4d9b43eba525439da82db16cd4aac0414
    https://github.com/scummvm/scummvm/commit/cf1171d4d9b43eba525439da82db16cd4aac0414
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2018-01-01T20:05:47+01:00

Commit Message:
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.

Changed paths:
    engines/mohawk/riven_video.cpp


diff --git a/engines/mohawk/riven_video.cpp b/engines/mohawk/riven_video.cpp
index 14af3e5..9bd185e 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





More information about the Scummvm-git-logs mailing list