From f1439b4fa7246c97820c69bf12625e9ec50e2221 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 15 Jan 2010 23:16:43 +0000 Subject: Fix QueuingAudioStreamImpl::endOfStream implementation. This fixes cut off speech in COMI for me. svn-id: r47316 --- sound/audiostream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound') diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index bd628d18d7..168ca49e2d 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -728,7 +728,7 @@ public: //Common::StackLock lock(_mutex); return _queue.empty(); } - virtual bool endOfStream() const { return _finished; } + virtual bool endOfStream() const { return _finished && _queue.empty(); } // Implement the QueuingAudioStream API virtual void queueAudioStream(AudioStream *stream, bool disposeAfterUse); -- cgit v1.2.3