do not create files when checking for existence...
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 8 Oct 2008 21:27:46 +0000 (21:27 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Wed, 8 Oct 2008 21:27:46 +0000 (21:27 +0000)
lib/python/Components/SystemInfo.py

index c3c8ff361022f68024f50be3780cc8005e06fa6b..506633242b9908bf5aa5cbd696e95f5ed7c37249 100644 (file)
@@ -6,7 +6,7 @@ SystemInfo = { }
 def getNumVideoDecoders():
        from Tools.Directories import fileExists
        idx = 0
-       while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'w'):
+       while fileExists("/dev/dvb/adapter0/video%d"%(idx), 'r'):
                idx += 1
        return idx