From 271956f2d7bff53eadaf658c25c423939c8ded65 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 8 Jan 2010 16:38:51 +0000 Subject: Add some warning inside makeLoopingAudioStream, in case the give start time is after the given end time. svn-id: r47162 --- sound/audiostream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sound') 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; } -- cgit v1.2.3