From 9f9398866adac30930d3d485e03d7810309461a9 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 10 Mar 2008 21:08:12 +0000 Subject: dont show pip options in extension menu when no pip is available --- lib/python/Components/SystemInfo.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index a3b83fd9..f33a8552 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -1 +1,10 @@ -SystemInfo = { } \ No newline at end of file +SystemInfo = { } + +#FIXMEE... +def getNumVideoDecoders(): + from Tools.Directories import fileExists + idx = 0 + while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'): + idx += 1 + +SystemInfo["NumVideoDecoders"] = getNumVideoDecoders() -- cgit v1.2.3