Author: duncan
Date: Sun Apr 22 10:31:37 2007
New Revision: 9490
Modified:
branches/rel-1/freevo/src/plugins/screensaver/__init__.py
Log:
[ 1704956 ] freevo 1.7.1-svn : screensaver never change the screensaver
Patch from Pascal Schirrmann applied
Modified: branches/rel-1/freevo/src/plugins/screensaver/__init__.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/screensaver/__init__.py (original)
+++ branches/rel-1/freevo/src/plugins/screensaver/__init__.py Sun Apr 22
10:31:37 2007
@@ -133,20 +133,21 @@
current_saver = None
index = 0
plugins_count = len(self.plugins)
+ _debug_('found %s screensaver(s)' % plugins_count)
while not self.stop_screensaver:
# No current screensaver so select one of the installed screensaver
# plugins at random
- if current_saver is None:
- if plugins_count == 1:
- current_saver = self.plugins[0]
- elif plugins_count > 1 and plugins_count <= 4:
- current_saver = self.plugins[index]
- index += 1
- if index > plugins_count:
- index = 0
- elif plugins_count > 4:
- index = random.randint(0, len(self.plugins) - 1)
- current_saver = self.plugins[index]
+ # if current_saver is None:
+ if plugins_count == 1:
+ current_saver = self.plugins[0]
+ elif plugins_count > 1 and plugins_count <= 4:
+ current_saver = self.plugins[index]
+ index += 1
+ if index >= plugins_count:
+ index = 0
+ elif plugins_count > 4:
+ index = random.randint(0, len(self.plugins) - 1)
+ current_saver = self.plugins[index]
# No screensaver found just sleep for 200ms
if current_saver is None:
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog