diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-01-14 15:29:51 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-01-14 15:29:51 +0100 |
commit | c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf (patch) | |
tree | 86c251636ee4e6d85ed6692e9d2e7d7f22515ecb /vdr.c | |
parent | 971e3e306d561c2320b5a0cfeac413897628dc6f (diff) | |
download | vdr-c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf.tar.gz vdr-c0fa83065d9f190fa2b9e8e7e4df0b088514cdaf.tar.bz2 |
Saving and restoring the current channel
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |