Permalink
Browse files

dvdplayer: make feedback on re-added timestamps immidiate

  • Loading branch information...
elupus committed Sep 27, 2012
1 parent 3ca1c58 commit 3322d5599235719ed1110cc198d9e44fb7928c11
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/cores/dvdplayer/DVDAudio.cpp
@@ -40,6 +40,11 @@ CPTSOutputQueue::CPTSOutputQueue()
void CPTSOutputQueue::Add(double pts, double duration)
{
CSingleLock lock(m_sync);
+
+ // drop re-adds, so current pts directly moves back
+ if(!m_queue.empty() && pts == m_queue.front().pts)
+ return;
+
TPTSItem item;
item.pts = pts;
item.duration = duration;

1 comment on commit 3322d55

I am not sure if this is still correct. CPTSOutputQueue now mirrors the real output queue. Isn't a calculation of total duration wrong then?

Please sign in to comment.