summaryrefslogtreecommitdiff
path: root/ttxtsubsdisplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttxtsubsdisplayer.c')
-rw-r--r--ttxtsubsdisplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ttxtsubsdisplayer.c b/ttxtsubsdisplayer.c
index bbad2cb..ffec39c 100644
--- a/ttxtsubsdisplayer.c
+++ b/ttxtsubsdisplayer.c
@@ -151,7 +151,7 @@ cTtxtSubsPlayer::cTtxtSubsPlayer(int backup_textpage)
// Take PES packets and break out the teletext data
// Buffer the data for processing in a separate thread
// XXX We should do some filtering here to avoid unneccessary load!
-void cTtxtSubsPlayer::PES_data(uchar *p, int Length)
+void cTtxtSubsPlayer::PES_data(uchar *p, int Length, bool IsPesRecording)
{
int i;
@@ -180,7 +180,7 @@ void cTtxtSubsPlayer::PES_data(uchar *p, int Length)
if(0xff == p[i*46]) // stuffing data
continue;
- uint64_t sched_time=cTimeMs::Now() + globals.replayDelay();
+ uint64_t sched_time=cTimeMs::Now() + (IsPesRecording ? globals.replayDelay() : globals.replayTsDelay());
cFrame *f = new cFrame(p + i*46, 46 + sizeof(sched_time));
memcpy(f->Data() + 46, &sched_time, sizeof(sched_time));
mRingBuf.Put(f);