[Scummvm-git-logs] scummvm master -> 6372c5d84561319110386a43568f7f935b699537

sev- sev at scummvm.org
Fri Aug 21 07:37:55 UTC 2020


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:
6372c5d845 DIRECTOR: Implemented DV looping


Commit: 6372c5d84561319110386a43568f7f935b699537
    https://github.com/scummvm/scummvm/commit/6372c5d84561319110386a43568f7f935b699537
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-21T09:37:33+02:00

Commit Message:
DIRECTOR: Implemented DV looping

Changed paths:
    engines/director/castmember.cpp


diff --git a/engines/director/castmember.cpp b/engines/director/castmember.cpp
index 8eca761e8e..53ae66d388 100644
--- a/engines/director/castmember.cpp
+++ b/engines/director/castmember.cpp
@@ -378,8 +378,13 @@ Graphics::MacWidget *DigitalVideoCastMember::createWidget(Common::Rect &bbox, Ch
 		_getFirstFrame = false;
 	}
 
-	if (_video->endOfVideo())
-		_channel->_movieRate = 0.0;
+	if (_video->endOfVideo()) {
+		if (_looping) {
+			_video->rewind();
+		} else {
+			_channel->_movieRate = 0.0;
+		}
+	}
 
 	return widget;
 }




More information about the Scummvm-git-logs mailing list