summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--dvbplayer.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index fe3df375..28bc551c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6056,3 +6056,4 @@ Video Disk Recorder Revision History
editing points in TS recordings).
- cDvbPlayer::Empty() subtracts 1 from readIndex, because Action() will first
increment it.
+- Only storing non-zero Pts values in ptsIndex.
diff --git a/dvbplayer.c b/dvbplayer.c
index b99ede51..219de497 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 2.14 2009/04/19 15:17:17 kls Exp $
+ * $Id: dvbplayer.c 2.15 2009/04/19 15:19:10 kls Exp $
*/
#include "dvbplayer.h"
@@ -513,7 +513,7 @@ void cDvbPlayer::Action(void)
p = playFrame->Data();
pc = playFrame->Count();
if (p) {
- if (playFrame->Index() >= 0)
+ if (playFrame->Index() >= 0 && playFrame->Pts() != 0)
ptsIndex.Put(playFrame->Pts(), playFrame->Index());
if (firstPacket) {
if (isPesRecording) {