diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-01 15:04:14 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-01 15:04:14 +0200 |
commit | 5a5fc72814c0a687d38b64c387f9bda642f8c4aa (patch) | |
tree | 08f216114cc768b79d3e3447457e2066631638c9 /vdr.c | |
parent | e2701822e83dbdb893e60ab556dbb0cbc7b3af21 (diff) | |
download | vdr-5a5fc72814c0a687d38b64c387f9bda642f8c4aa.tar.gz vdr-5a5fc72814c0a687d38b64c387f9bda642f8c4aa.tar.bz2 |
Stopping finished timer recordings before starting new ones
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |