ok Here's the diff the right way around:

--- /root/freevo/src/video/videoitem.py 2005-01-01 14:38:51.000000000 -0400
+++ videoitem.py        2005-01-19 18:49:25.111868760 -0400
@@ -83,6 +83,7 @@
         self.selected_audio    = None
         self.elapsed           = 0

+       self.player            = None
         self.possible_player   = []

         # set url and parse the name



On Wed, 19 Jan 2005 18:54:36 -0400, Andrew Dumaresq <[EMAIL PROTECTED]> wrote:
> I noticed that when trying to play video items that had two or more
> files, ie have subitems that freevo crached with the following error
> in debug:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/freevo/eventhandler.py", line 335, in
> handle
>     elif not self.applications[-1].eventhandler(event=event):
>   File "/usr/lib/python2.3/site-packages/freevo/menu.py", line 541, in 
> eventhan
> dler
>     actions[0](menuw=self)
>   File "/usr/lib/python2.3/site-packages/freevo/item.py", line 166, in 
> __call__
>     self.function(arg=self.arg, menuw=menuw)
>   File "/usr/lib/python2.3/site-packages/freevo/video/videoitem.py", line 508,
> in play
>     self.last_error_msg=self.current_subitem.play(arg, menuw)
>   File "/usr/lib/python2.3/site-packages/freevo/video/videoitem.py", line 568,
> in play
>     if not self.player:
> AttributeError: VideoItem instance has no attribute 'player'
> 
> I was able to fix this by changing the class VideoItem to include
> self.player.  I am not sure why freevo was able to play files that did
> not have sub items, without this. Anyway this fixes the above
> mentioned crash.
> 
> Here is my diff:
> --- videoitem.py        2005-01-19 18:49:25.111868760 -0400
> +++ /root/freevo/src/video/videoitem.py 2005-01-01 14:38:51.000000000 -0400
> @@ -83,7 +83,6 @@
>          self.selected_audio    = None
>          self.elapsed           = 0
> 
> -       self.player            = None
>          self.possible_player   = []
> 
>          # set url and parse the name
> 
> Thanks
> --Andrew
>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to