diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-09 13:26:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-09 13:26:56 +0200 |
commit | 87ba3ae5585878951f9db6fa4d0a975b1e9e2e68 (patch) | |
tree | 46426a3d6652ea7375f94c3a3d1d51b409e1d1f1 /vdr.c | |
parent | e36da7ab8d9d1da0eb2911cd229070de555c485b (diff) | |
download | vdr-87ba3ae5585878951f9db6fa4d0a975b1e9e2e68.tar.gz vdr-87ba3ae5585878951f9db6fa4d0a975b1e9e2e68.tar.bz2 |
The initial channel and volume can now be defined in the "Setup/Miscellaneous" menu
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.253 2006/04/09 09:10:41 kls Exp $ + * $Id: vdr.c 1.254 2006/04/09 12:22:46 kls Exp $ */ #include <getopt.h> @@ -632,6 +632,10 @@ int main(int argc, char *argv[]) if (!cDevice::WaitForAllDevicesReady(DEVICEREADYTIMEOUT)) dsyslog("not all devices ready after %d seconds", DEVICEREADYTIMEOUT); + if (Setup.InitialChannel > 0) + Setup.CurrentChannel = Setup.InitialChannel; + if (Setup.InitialVolume >= 0) + Setup.CurrentVolume = Setup.InitialVolume; Channels.SwitchTo(Setup.CurrentChannel); if (MuteAudio) cDevice::PrimaryDevice()->ToggleMute(); |