From 32109c7197f477b625c6e74bb0434ac56a75e215 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 26 Dec 2018 18:16:21 +0200 Subject: [PATCH] Changed: Wrong isEnded state for streaming file when still in waiting state. --HG-- branch : develop --- code/nel/src/sound/stream_file_source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/sound/stream_file_source.cpp b/code/nel/src/sound/stream_file_source.cpp index 9a03ba2d8..4d490cfac 100644 --- a/code/nel/src/sound/stream_file_source.cpp +++ b/code/nel/src/sound/stream_file_source.cpp @@ -372,7 +372,7 @@ void CStreamFileSource::run() m_AudioDecoder = NULL; // _Playing cannot be used to detect play state because its required in cleanup // Using m_AudioDecoder in isEnded() may result race condition (decoder is only created after thread is started) - m_DecodingEnded = true; + m_DecodingEnded = !m_WaitingForPlay; } // drop buffers m_FreeBuffers = 3;