From: ghost Date: Fri, 6 Feb 2009 16:59:27 +0000 (+0100) Subject: fix standby for hardware without scart switch X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=be53117395c453d1a62f878d42beba927ddfbfe1;hp=d00d32df526b88b146c711ce8951008d72ec6a56 fix standby for hardware without scart switch --- diff --git a/lib/python/Screens/Standby.py b/lib/python/Screens/Standby.py index 4c3a172..d09f28a 100644 --- a/lib/python/Screens/Standby.py +++ b/lib/python/Screens/Standby.py @@ -2,6 +2,7 @@ from Screen import Screen from Components.ActionMap import ActionMap from Components.config import config from Components.AVSwitch import AVSwitch +from Components.SystemInfo import SystemInfo from enigma import eDVBVolumecontrol inStandby = None @@ -49,7 +50,10 @@ class Standby(Screen): #stop actual played dvb-service self.session.nav.stopService() #set input to vcr scart - self.avswitch.setInput("SCART") + if SystemInfo["ScartSwitch"]: + self.avswitch.setInput("SCART") + else: + self.avswitch.setInput("AUX") #set lcd brightness to standby value config.lcd.standby.apply() self.onShow.append(self.__onShow)