[Scummvm-cvs-logs] SF.net SVN: scummvm:[55309] scummvm/trunk/engines/mohawk/video.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Tue Jan 18 20:22:49 CET 2011
Revision: 55309
http://scummvm.svn.sourceforge.net/scummvm/?rev=55309&view=rev
Author: mthreepwood
Date: 2011-01-18 19:22:48 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
MOHAWK: Add a sanity check to waitUntilMovieEnds()
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/video.cpp
Modified: scummvm/trunk/engines/mohawk/video.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/video.cpp 2011-01-18 19:17:24 UTC (rev 55308)
+++ scummvm/trunk/engines/mohawk/video.cpp 2011-01-18 19:22:48 UTC (rev 55309)
@@ -106,6 +106,9 @@
}
void VideoManager::waitUntilMovieEnds(VideoHandle videoHandle) {
+ if (videoHandle == NULL_VID_HANDLE)
+ return;
+
bool continuePlaying = true;
while (!_videoStreams[videoHandle].endOfVideo() && !_vm->shouldQuit() && continuePlaying) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list