do not create files when checking for existence...
[vuplus_dvbapp] / lib / python / Components / SystemInfo.py
index c3c8ff3..5066332 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