1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Only storing non-zero Pts values in ptsIndex

This commit is contained in:
Klaus Schmidinger 2009-04-19 15:19:10 +02:00
parent 85645317ae
commit e7c18af94c
2 changed files with 3 additions and 2 deletions

View File

@ -6056,3 +6056,4 @@ Video Disk Recorder Revision History
editing points in TS recordings). editing points in TS recordings).
- cDvbPlayer::Empty() subtracts 1 from readIndex, because Action() will first - cDvbPlayer::Empty() subtracts 1 from readIndex, because Action() will first
increment it. increment it.
- Only storing non-zero Pts values in ptsIndex.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "dvbplayer.h"
@ -513,7 +513,7 @@ void cDvbPlayer::Action(void)
p = playFrame->Data(); p = playFrame->Data();
pc = playFrame->Count(); pc = playFrame->Count();
if (p) { if (p) {
if (playFrame->Index() >= 0) if (playFrame->Index() >= 0 && playFrame->Pts() != 0)
ptsIndex.Put(playFrame->Pts(), playFrame->Index()); ptsIndex.Put(playFrame->Pts(), playFrame->Index());
if (firstPacket) { if (firstPacket) {
if (isPesRecording) { if (isPesRecording) {