From 7ade39597ac83a03395e86a8276fbb6dec6a6a2f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 22 Jun 2002 10:11:59 +0200 Subject: Activated cutting --- vdr.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'vdr.c') diff --git a/vdr.c b/vdr.c index bef3919f..9423219f 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.114 2002/06/16 11:30:28 kls Exp $ + * $Id: vdr.c 1.115 2002/06/22 09:56:12 kls Exp $ */ #include @@ -31,6 +31,7 @@ #include #include #include "config.h" +#include "cutter.h" #include "device.h" #include "eitscan.h" #include "i18n.h" @@ -529,16 +530,14 @@ int main(int argc, char *argv[]) } if (!Menu) { EITScanner.Process(); - /*XXX+ - if (!cVideoCutter::Active() && cVideoCutter::Ended()) { - if (cVideoCutter::Error()) + if (!cCutter::Active() && cCutter::Ended()) { + if (cCutter::Error()) Interface->Error(tr("Editing process failed!")); else Interface->Info(tr("Editing process finished")); } - XXX*/ } - if (!*Interact && ((!cRecordControls::Active() /*XXX+&& !cVideoCutter::Active()XXX*/) || ForceShutdown)) { + if (!*Interact && ((!cRecordControls::Active() && !cCutter::Active()) || ForceShutdown)) { time_t Now = time(NULL); if (Now - LastActivity > ACTIVITYTIMEOUT) { // Shutdown: @@ -598,7 +597,7 @@ int main(int argc, char *argv[]) if (Interrupted) isyslog("caught signal %d", Interrupted); cRecordControls::Shutdown(); - //XXX+cVideoCutter::Stop(); + cCutter::Stop(); delete Menu; delete ReplayControl; delete Interface; -- cgit v1.2.3