summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-01 15:04:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-01 15:04:14 +0200
commit5a5fc72814c0a687d38b64c387f9bda642f8c4aa (patch)
tree08f216114cc768b79d3e3447457e2066631638c9 /vdr.c
parente2701822e83dbdb893e60ab556dbb0cbc7b3af21 (diff)
downloadvdr-5a5fc72814c0a687d38b64c387f9bda642f8c4aa.tar.gz
vdr-5a5fc72814c0a687d38b64c387f9bda642f8c4aa.tar.bz2
Stopping finished timer recordings before starting new ones
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index 0a93d4bb..efb5e1c3 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.67 2001/09/01 13:48:44 kls Exp $
+ * $Id: vdr.c 1.68 2001/09/01 14:50:40 kls Exp $
*/
#define _GNU_SOURCE
@@ -333,12 +333,13 @@ int main(int argc, char *argv[])
}
// Timers and Recordings:
if (!Menu) {
- cTimer *Timer = Timers.GetMatch();
+ time_t Now = time(NULL); // must do both following calls with the exact same time!
+ cRecordControls::Process(Now);
+ cTimer *Timer = Timers.GetMatch(Now);
if (Timer) {
if (!cRecordControls::Start(Timer))
Timer->SetPending(true);
}
- cRecordControls::Process();
}
// User Input:
cOsdBase **Interact = Menu ? &Menu : (cOsdBase **)&ReplayControl;