diff options
Diffstat (limited to 'sound')
-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; } |