summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-09 13:26:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-09 13:26:56 +0200
commit87ba3ae5585878951f9db6fa4d0a975b1e9e2e68 (patch)
tree46426a3d6652ea7375f94c3a3d1d51b409e1d1f1 /vdr.c
parente36da7ab8d9d1da0eb2911cd229070de555c485b (diff)
downloadvdr-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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index 904f637a..8d9ab54a 100644
--- a/vdr.c
+++ b/vdr.c
@@ -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();