Skip to content

Commit

Permalink
[dvdplayer] make sure timestamp queus are flush on resync in dvdplayer
Browse files Browse the repository at this point in the history
After a resync, clocks are expected to be expressed in the new time. If this is not done,
m_audioClock can get updated to old values again.
  • Loading branch information
elupus committed Jun 12, 2012
1 parent 4c5aaa8 commit 5de9c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
Expand Up @@ -429,6 +429,8 @@ int CDVDPlayerAudio::DecodeFrame(DVDAudioFrame &audioframe, bool bDropPacket)
if (pMsgGeneralResync->m_timestamp != DVD_NOPTS_VALUE)
m_audioClock = pMsgGeneralResync->m_timestamp;

m_ptsInput.Flush();
m_ptsOutput.Flush();
m_ptsOutput.Add(m_audioClock, m_dvdAudio.GetDelay(), 0);
if (pMsgGeneralResync->m_clock)
{
Expand Down

0 comments on commit 5de9c47

Please sign in to comment.