Skip to content
This repository
Browse code

ActiveAE: fix determination when a stream is drained

  • Loading branch information...
commit 191f4d1097b06472ee3db441d2563cde6d649d33 1 parent 61acd19
Rainer Hochecker authored August 26, 2013
4  xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
@@ -1477,7 +1477,9 @@ bool CActiveAE::RunStages()
1477 1477
     }
1478 1478
     else
1479 1479
     {
1480  
-      if ((*it)->m_inputBuffers->m_allSamples.size() == (*it)->m_inputBuffers->m_freeSamples.size())
  1480
+      if ((*it)->m_resampleBuffers->m_inputSamples.empty() &&
  1481
+          (*it)->m_resampleBuffers->m_outputSamples.empty() &&
  1482
+          (*it)->m_processingSamples.empty())
1481 1483
       {
1482 1484
         (*it)->m_streamPort->SendInMessage(CActiveAEDataProtocol::STREAMDRAINED);
1483 1485
         (*it)->m_drain = false;

0 notes on commit 191f4d1

Please sign in to comment.
Something went wrong with that request. Please try again.