dvdplayer: reduce likelyhood of jumpy pts causing duplicate subtitles
authorJoakim Plate <elupus@ecce.se>
Wed, 24 Oct 2012 20:53:01 +0000 (22:53 +0200)
committerJoakim Plate <elupus@ecce.se>
Wed, 24 Oct 2012 20:53:23 +0000 (22:53 +0200)
xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitleLineCollection.cpp

index 6f1a28c..d38016c 100644 (file)
@@ -80,7 +80,7 @@ CDVDOverlay* CDVDSubtitleLineCollection::Get(double iPts)
 {
   CDVDOverlay* pOverlay = NULL;
 
-  if (iPts < m_fLastPts)
+  if (iPts + DVD_SEC_TO_TIME(1) < m_fLastPts)
     Reset();
 
   if (m_pCurrent)