Hi all

For freevo-1.5.x the plug-in video-dvdimage-0.1 by viggo causes a crash
then the ENTER button is pressed when the Play Title is selected.

The reason is that item.files is None, the attached patch checks this
and returns.

Duncan
--- freevo-1.5.4/video/plugins/dvdimage.py      2004-02-26 09:55:18.000000000 
+0100
+++ freevo/video/plugins/dvdimage.py    2006-09-24 10:03:10.000000000 +0200
@@ -60,8 +60,10 @@
 
             self.files = []
             self.item  = item
-            fs         = item.files.get()
+            if not item.files:
+                return []
 
+            fs = item.files.get()
             for f in fs:
                 if f.endswith('.img') or f.endswith('.iso'):
                     self.files.append(f)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to