Author: tack
Date: Mon Dec 11 16:43:00 2006
New Revision: 2222
Modified:
trunk/popcorn/src/backends/manager.py
Log:
Fix "UnboundLocalError: local variable 'scheme' referenced before assignment"
Modified: trunk/popcorn/src/backends/manager.py
==============================================================================
--- trunk/popcorn/src/backends/manager.py (original)
+++ trunk/popcorn/src/backends/manager.py Mon Dec 11 16:43:00 2006
@@ -101,6 +101,8 @@
# Note: cls._player_caps are without the rating!
cls._player_caps = [ x for x in player_caps.keys() if x ]
+ scheme, path = parse_mrl(mrl)
+
if force != None and force in _players:
player = _players[force]
if scheme not in player["schemes"]:
@@ -109,7 +111,6 @@
# capabilities match or not
return player["class"]
- scheme, path = parse_mrl(mrl)
ext = os.path.splitext(path)[1]
if ext:
ext = ext[1:] # Eat leading '.'
-------------------------------------------------------------------------
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-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog