Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ActiveAE: fix determination when a stream is drained

  • Loading branch information...
commit 191f4d1097b06472ee3db441d2563cde6d649d33 1 parent 61acd19
@FernetMenta FernetMenta authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
View
4 xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
@@ -1477,7 +1477,9 @@ bool CActiveAE::RunStages()
}
else
{
- if ((*it)->m_inputBuffers->m_allSamples.size() == (*it)->m_inputBuffers->m_freeSamples.size())
+ if ((*it)->m_resampleBuffers->m_inputSamples.empty() &&
+ (*it)->m_resampleBuffers->m_outputSamples.empty() &&
+ (*it)->m_processingSamples.empty())
{
(*it)->m_streamPort->SendInMessage(CActiveAEDataProtocol::STREAMDRAINED);
(*it)->m_drain = false;
Please sign in to comment.
Something went wrong with that request. Please try again.