Skip to content

Commit

Permalink
Remove unused WaitCompletion function
Browse files Browse the repository at this point in the history
  • Loading branch information
jehutting authored and popcornmix committed May 10, 2016
1 parent 2085f85 commit fb8261c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
24 changes: 0 additions & 24 deletions OMXPlayerAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

1 change: 0 additions & 1 deletion OMXPlayerAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down

0 comments on commit fb8261c

Please sign in to comment.