diff options
author | Johannes Schickel | 2010-01-08 16:38:51 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-01-08 16:38:51 +0000 |
commit | 271956f2d7bff53eadaf658c25c423939c8ded65 (patch) | |
tree | 09fad4061528ba9987db8e4304d3511af829f852 | |
parent | 85adbdb1ad7615b4d8177f9c3727ac4bcd5d1625 (diff) | |
download | scummvm-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
-rw-r--r-- | sound/audiostream.cpp | 3 |
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; } |