summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-01-14 15:29:51 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2001-01-14 15:29:51 +0100
commitc0fa83065d9f190fa2b9e8e7e4df0b088514cdaf (patch)
tree86c251636ee4e6d85ed6692e9d2e7d7f22515ecb /vdr.c
parent971e3e306d561c2320b5a0cfeac413897628dc6f (diff)
downloadvdr-c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf.tar.gz
vdr-c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf.tar.bz2
Saving and restoring the current channel
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 6a87ab63..698cc7a6 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.48 2000/12/25 09:43:08 kls Exp $
+ * $Id: vdr.c 1.49 2001/01/14 15:29:51 kls Exp $
*/
#include <getopt.h>
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
cDvbApi::SetPrimaryDvbApi(Setup.PrimaryDVB);
- Channels.SwitchTo(1);
+ Channels.SwitchTo(Setup.CurrentChannel);
cEITScanner EITScanner;
@@ -312,6 +312,8 @@ int main(int argc, char *argv[])
}
}
isyslog(LOG_INFO, "caught signal %d", Interrupted);
+ Setup.CurrentChannel = cDvbApi::CurrentChannel();
+ Setup.Save();
cVideoCutter::Stop();
delete Menu;
delete ReplayControl;