When playing a movie ends, the eventhandler of DirItem tries to stop the
background_playlist, but for some reason there is no such attribute in
the object. Here is a quickfix that checks if such attribute exists
before trying to access it.

This bug might be the sign of some other bug somewhere (why isn't this
background_playlist initialized to at least null in my case?)

Matthieu
-- 
 (~._.~)        Matthieu Weber - Université de Jyväskylä         (~._.~)
  ( ? )                email : [EMAIL PROTECTED]                  ( ? ) 
 ()- -()               public key id : 452AE0AD                  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)
Index: playlist.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/playlist.py,v
retrieving revision 1.38
diff -u -r1.38 playlist.py
--- playlist.py 7 Dec 2003 19:11:22 -0000       1.38
+++ playlist.py 8 Dec 2003 09:23:31 -0000
@@ -353,7 +353,7 @@
                 
         # end and no next item
         if event in (PLAY_END, USER_END, STOP):
-            if self.background_playlist:
+            if hasattr(self, 'background_playlist') and self.background_playlist:
                 self.background_playlist.stop()
             self.current_item = None
             if menuw:

Reply via email to