diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-19 15:19:10 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-19 15:19:10 +0200 |
commit | e7c18af94ce71f52e3c5d7d54e0b5648f64e26e5 (patch) | |
tree | c1a6ec4d61dcfa2594823dfa62167b17abf930b3 | |
parent | 85645317ae2e924ecc8faa6ff9a7935a7ebff15e (diff) | |
download | vdr-e7c18af94ce71f52e3c5d7d54e0b5648f64e26e5.tar.gz vdr-e7c18af94ce71f52e3c5d7d54e0b5648f64e26e5.tar.bz2 |
Only storing non-zero Pts values in ptsIndex
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dvbplayer.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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) { |