aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-08 16:38:51 +0000
committerJohannes Schickel2010-01-08 16:38:51 +0000
commit271956f2d7bff53eadaf658c25c423939c8ded65 (patch)
tree09fad4061528ba9987db8e4304d3511af829f852 /sound
parent85adbdb1ad7615b4d8177f9c3727ac4bcd5d1625 (diff)
downloadscummvm-rg350-271956f2d7bff53eadaf658c25c423939c8ded65.tar.gz
scummvm-rg350-271956f2d7bff53eadaf658c25c423939c8ded65.tar.bz2
scummvm-rg350-271956f2d7bff53eadaf658c25c423939c8ded65.zip
Add some warning inside makeLoopingAudioStream, in case the give start time is after the given end time.
svn-id: r47162
Diffstat (limited to 'sound')
-rw-r--r--sound/audiostream.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index ea71c161e8..98cece6dfb 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -151,7 +151,8 @@ AudioStream *makeLoopingAudioStream(SeekableAudioStream *stream, Timestamp start
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;
}