From 1296a56d96dedb3d8f34f41787c971ec42bb3ca7 Mon Sep 17 00:00:00 2001 From: Tobias Grimm Date: Sun, 14 Dec 2008 19:51:31 +0100 Subject: ttxtsubs: updated patch for VDR 1.6.0-2 by Rolf Ahrenberg --- menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index b7eab45..b1f112a 100644 --- a/menu.c +++ b/menu.c @@ -28,6 +28,7 @@ #include "themes.h" #include "timers.h" #include "transfer.h" +#include "vdrttxtsubshooks.h" #include "videodir.h" #define MAXWAIT4EPGINFO 3 // seconds @@ -3811,8 +3812,10 @@ cRecordControl::cRecordControl(cDevice *Device, cTimer *Timer, bool Pause) isyslog("record %s", fileName); if (MakeDirs(fileName, true)) { const cChannel *ch = timer->Channel(); - recorder = new cRecorder(fileName, ch->GetChannelID(), timer->Priority(), ch->Vpid(), ch->Apids(), ch->Dpids(), ch->Spids()); + cTtxtSubsRecorderBase *subsRecorder = cVDRTtxtsubsHookListener::Hook()->NewTtxtSubsRecorder(device, ch); + recorder = new cRecorder(fileName, ch->GetChannelID(), timer->Priority(), ch->Vpid(), ch->Apids(), ch->Dpids(), ch->Spids(), subsRecorder); if (device->AttachReceiver(recorder)) { + if (subsRecorder) subsRecorder->DeviceAttach(); Recording.WriteInfo(); cStatus::MsgRecording(device, Recording.Name(), Recording.FileName(), true); if (!Timer && !cReplayControl::LastReplayed()) // an instant recording, maybe from cRecordControls::PauseLiveVideo() -- cgit v1.2.3