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:
parent
85645317ae
commit
e7c18af94c
1
HISTORY
1
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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user