aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-04 19:53:23 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-07-04 19:53:23 +0000
commit0150e4463bb1204307de78d6826cecfb6492d7c2 (patch)
treeb4e48a078dbf0a6e5de4a87e8532e7d73e1a941e /lib/python
parent430284954068906c8e2ad3ac4479292f145610c4 (diff)
downloadenigma2-0150e4463bb1204307de78d6826cecfb6492d7c2.tar.gz
enigma2-0150e4463bb1204307de78d6826cecfb6492d7c2.zip
fix possible blue screen
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index f530dddd..d43c9dda 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1229,13 +1229,13 @@ class InfoBarAudioSelection:
def audioSelection(self):
service = self.session.nav.getCurrentService()
- audio = service.audioTracks()
+ audio = service and service.audioTracks()
self.audioTracks = audio
- n = audio.getNumberOfTracks()
+ n = audio and audio.getNumberOfTracks()
keys = [ "red", "", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] + [""]*n
tlist = []
print "tlist:", tlist
- if n > 0:
+ if n and n > 0:
self.audioChannel = service.audioChannel()
for x in range(n):