Changed: Wrong isEnded state for streaming file when still in waiting state.

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-12-26 18:16:21 +02:00
parent e1be4260d5
commit 32109c7197

View file

@ -372,7 +372,7 @@ void CStreamFileSource::run()
m_AudioDecoder = NULL; m_AudioDecoder = NULL;
// _Playing cannot be used to detect play state because its required in cleanup // _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) // 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 // drop buffers
m_FreeBuffers = 3; m_FreeBuffers = 3;