[Scummvm-cvs-logs] SF.net SVN: scummvm:[47162] scummvm/trunk/sound/audiostream.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Jan 8 17:38:51 CET 2010


Revision: 47162
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47162&view=rev
Author:   lordhoto
Date:     2010-01-08 16:38:51 +0000 (Fri, 08 Jan 2010)

Log Message:
-----------
Add some warning inside makeLoopingAudioStream, in case the give start time is after the given end time.

Modified Paths:
--------------
    scummvm/trunk/sound/audiostream.cpp

Modified: scummvm/trunk/sound/audiostream.cpp
===================================================================
--- scummvm/trunk/sound/audiostream.cpp	2010-01-08 16:31:48 UTC (rev 47161)
+++ scummvm/trunk/sound/audiostream.cpp	2010-01-08 16:38:51 UTC (rev 47162)
@@ -151,7 +151,8 @@
 		if (!end.totalNumberOfFrames())
 			end = stream->getLength();
 
-		if (start > end) {
+		if (start >= end) {
+			warning("makeLoopingAudioStream: start (%d) >= end (%d)", start.msecs(), end.msecs());
 			delete stream;
 			return 0;
 		}


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