Bugs item #1622265, was opened at 2006-12-26 08:16
Message generated for change (Comment added) made by duncanwebb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1622265&group_id=46652

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv
Group: 1.x svn
>Status: Pending
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Frank Naude (naudefj)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'chan' referenced before assignment

Initial Comment:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/freevo/main.py", line 458, in ?
    MainTread().run()
  File "/usr/lib/python2.4/site-packages/freevo/main.py", line 322, in run
    self.eventhandler(rc.get_event(True))
  File "/usr/lib/python2.4/site-packages/freevo/main.py", line 272, in 
eventhandler
    if not rc.app()(event):
  File "/usr/lib/python2.4/site-packages/freevo/tv/plugins/mplayer.py", line 
253, in eventhandler
    _debug_('chan=%s, nextchannum=%s, nextchan=%s nextvg=%s' % (chan, 
nextchannum, nextchan, nextvg))
UnboundLocalError: local variable 'chan' referenced before assignment


----------------------------------------------------------------------

>Comment By: Duncan Webb (duncanwebb)
Date: 2006-12-26 10:39

Message:
Logged In: YES 
user_id=104395
Originator: NO

Thanks,

The patch has been applied to rel-1 at r8807.

----------------------------------------------------------------------

Comment By: Frank Naude (naudefj)
Date: 2006-12-26 08:42

Message:
Logged In: YES 
user_id=143611
Originator: YES

Index: freevo-1/src/tv/plugins/mplayer.py
===================================================================
--- freevo-1/src/tv/plugins/mplayer.py  (revision 8806)
+++ freevo-1/src/tv/plugins/mplayer.py  (working copy)
@@ -238,6 +238,7 @@
             return TRUE

         elif event in [ em.TV_CHANNEL_UP, em.TV_CHANNEL_DOWN] or
s_event.startswith('INPUT_'):
+            chan = None
             if event == em.TV_CHANNEL_UP:
                 nextchan = self.fc.getNextChannel()
                 nextchannum = self.fc.getNextChannelNum()


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1622265&group_id=46652

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to