diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-04-30 11:15:16 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-04-30 11:15:16 +0200 |
commit | f7ac74ede445b099e8fa97a15674f2b4ecde279a (patch) | |
tree | 508f111a8996e2d0fddab37bbe5251f69f39b2eb /vdr.c | |
parent | 49ce70fdb39d1505d593da179f52c8f1f0bdcfb1 (diff) | |
download | vdr-f7ac74ede445b099e8fa97a15674f2b4ecde279a.tar.gz vdr-f7ac74ede445b099e8fa97a15674f2b4ecde279a.tar.bz2 |
Instant recording can now be stopped via the menu
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/people/kls/vdr * - * $Id: vdr.c 1.15 2000/04/30 10:19:52 kls Exp $ + * $Id: vdr.c 1.16 2000/04/30 11:06:41 kls Exp $ */ #include <signal.h> @@ -111,12 +111,18 @@ int main(int argc, char *argv[]) if (*Interact) { switch ((*Interact)->ProcessKey(key)) { case osMenu: DELETENULL(Menu); - Menu = new cMenuMain; + Menu = new cMenuMain(RecordControl && RecordControl->IsInstant()); break; case osReplay: DELETENULL(Menu); DELETENULL(ReplayControl); ReplayControl = new cReplayControl; break; + case osStopRecord: if (RecordControl) { + RecordControl->Stop(); + DELETENULL(Menu); // must make sure no menu uses the timer + DELETENULL(RecordControl); + } + break; case osBack: case osEnd: DELETENULL(*Interact); break; @@ -140,7 +146,7 @@ int main(int argc, char *argv[]) RecordControl = new cRecordControl; break; // Menu Control: - case kMenu: Menu = new cMenuMain; break; + case kMenu: Menu = new cMenuMain(RecordControl && RecordControl->IsInstant()); break; // Up/Down Channel Select: case kUp: case kDown: if (!RecordControl) { |