Skip to content

Commit

Permalink
AE: fix number of provided buffers for PT
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Jan 29, 2016
1 parent b0f3b8b commit 0bdf85e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -1844,6 +1844,8 @@ bool CActiveAE::RunStages()
if (!(*it)->m_drain)
{
float buftime = (float)(*it)->m_inputBuffers->m_format.m_frames / (*it)->m_inputBuffers->m_format.m_sampleRate;
if ((*it)->m_inputBuffers->m_format.m_dataFormat == AE_FMT_RAW)
buftime = (*it)->m_inputBuffers->m_format.m_streamInfo.GetDuration() / 1000;
time += buftime * (*it)->m_processingSamples.size();
while ((time < MAX_CACHE_LEVEL || (*it)->m_streamIsBuffering) && !(*it)->m_inputBuffers->m_freeSamples.empty())
{
Expand Down

0 comments on commit 0bdf85e

Please sign in to comment.