Skip to content

Commit

Permalink
ActiveAE: better 2 duplicate loc than recursive locking and an additi…
Browse files Browse the repository at this point in the history
…on function call, fix after d66354d
  • Loading branch information
FernetMenta committed Sep 26, 2014
1 parent 44f14c6 commit 79e0ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
Expand Up @@ -91,7 +91,8 @@ void CEngineStats::GetDelay(AEDelayStatus& status)
void CEngineStats::GetDelay(AEDelayStatus& status, CActiveAEStream *stream)
{
CSingleLock lock(m_lock);
GetDelay(status);
status = m_sinkDelay;
status.delay += (double)m_bufferedSamples / m_sinkSampleRate;

status.delay += m_sinkLatency;
status.delay += stream->m_bufferedTime / stream->m_streamResampleRatio;
Expand Down

0 comments on commit 79e0ba6

Please sign in to comment.