diff options
author | Max Horn | 2010-02-23 22:54:23 +0000 |
---|---|---|
committer | Max Horn | 2010-02-23 22:54:23 +0000 |
commit | 7f2259c11f5f5d97e252dc072dc88a3964d167a7 (patch) | |
tree | 86e6ea1d224b20216b1199e740ce1045054494ee | |
parent | 4e691a774c111906357fd41d3f71b945a37509b3 (diff) | |
download | scummvm-rg350-7f2259c11f5f5d97e252dc072dc88a3964d167a7.tar.gz scummvm-rg350-7f2259c11f5f5d97e252dc072dc88a3964d167a7.tar.bz2 scummvm-rg350-7f2259c11f5f5d97e252dc072dc88a3964d167a7.zip |
Add assert(!_finished) to QueuingAudioStreamImpl::queueAudioStream
svn-id: r48122
-rw-r--r-- | sound/audiostream.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 8a86365b7b..1d81eba608 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -342,6 +342,7 @@ QueuingAudioStreamImpl::~QueuingAudioStreamImpl() { } void QueuingAudioStreamImpl::queueAudioStream(AudioStream *stream, DisposeAfterUse::Flag disposeAfterUse) { + assert(!_finished); if ((stream->getRate() != getRate()) || (stream->isStereo() != isStereo())) error("QueuingAudioStreamImpl::queueAudioStream: stream has mismatched parameters"); |