From e7c18af94ce71f52e3c5d7d54e0b5648f64e26e5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 19 Apr 2009 15:19:10 +0200 Subject: [PATCH] Only storing non-zero Pts values in ptsIndex --- HISTORY | 1 + dvbplayer.c | 4 ++-- 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) {