diff --git a/OMXPlayerAudio.cpp b/OMXPlayerAudio.cpp index 44ab87a4..703c23cf 100644 --- a/OMXPlayerAudio.cpp +++ b/OMXPlayerAudio.cpp @@ -501,27 +501,3 @@ bool OMXPlayerAudio::IsEOS() return m_packets.empty() && (!m_decoder || m_decoder->IsEOS()); } -void OMXPlayerAudio::WaitCompletion() -{ - if(!m_decoder) - return; - - unsigned int nTimeOut = m_config.fifo_size * 1000; - while(nTimeOut) - { - if(IsEOS()) - { - CLog::Log(LOGDEBUG, "%s::%s - got eos\n", "OMXPlayerAudio", __func__); - break; - } - - if(nTimeOut == 0) - { - CLog::Log(LOGERROR, "%s::%s - wait for eos timed out\n", "OMXPlayerAudio", __func__); - break; - } - OMXClock::OMXSleep(50); - nTimeOut -= 50; - } -} - diff --git a/OMXPlayerAudio.h b/OMXPlayerAudio.h index f32bfefc..0be2621a 100644 --- a/OMXPlayerAudio.h +++ b/OMXPlayerAudio.h @@ -102,7 +102,6 @@ class OMXPlayerAudio : public OMXThread double GetCurrentPTS() { return m_iCurrentPts; }; void SubmitEOS(); bool IsEOS(); - void WaitCompletion(); unsigned int GetCached() { return m_cached_size; }; unsigned int GetMaxCached() { return m_config.queue_size * 1024 * 1024; }; unsigned int GetLevel() { return m_config.queue_size ? 100.0f * m_cached_size / (m_config.queue_size * 1024.0f * 1024.0f) : 0; };