Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dvdplayer: make feedback on re-added timestamps immidiate

  • Loading branch information...
commit 3322d5599235719ed1110cc198d9e44fb7928c11 1 parent 3ca1c58
@elupus authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/cores/dvdplayer/DVDAudio.cpp
View
5 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

@FernetMenta

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.
Something went wrong with that request. Please try again.