Skip to content

Commit

Permalink
omxaudio: Avoid reporting a spurious cached value
Browse files Browse the repository at this point in the history
Avoids seek bar showing zero after a seek
  • Loading branch information
popcornmix committed Jan 16, 2016
1 parent 6f77dd6 commit 06118a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/omxplayer/OMXAudio.cpp
Expand Up @@ -1285,7 +1285,7 @@ float COMXAudio::GetDelay()
if (m_last_pts != DVD_NOPTS_VALUE && m_av_clock)
stamp = m_av_clock->OMXMediaTime();
// if possible the delay is current media time - time of last submitted packet
if (stamp != DVD_NOPTS_VALUE)
if (stamp != DVD_NOPTS_VALUE && stamp != 0.0)
{
ret = (m_last_pts - stamp) * (1.0 / DVD_TIME_BASE);
}
Expand Down

0 comments on commit 06118a0

Please sign in to comment.