Author: dmeyer
Date: Fri Feb 16 14:41:06 2007
New Revision: 2494
Modified:
trunk/popcorn/src/backends/mplayer/player.py
Log:
use split again with extra param
Modified: trunk/popcorn/src/backends/mplayer/player.py
==============================================================================
--- trunk/popcorn/src/backends/mplayer/player.py (original)
+++ trunk/popcorn/src/backends/mplayer/player.py Fri Feb 16 14:41:06 2007
@@ -225,10 +225,8 @@
self._state = STATE_PAUSED
elif line.startswith("ID_") and line.find("=") != -1:
- # attr, value = line.split("=") could crash if the filename
- # contains a '=' (which could happen very easy in an http url)
- attr = line[3:line.find('=')]
- value = line[line.find('=')+1]
+ attr, value = line.split('=', 1)
+ attr = attr[3:]
info = { "VIDEO_FORMAT": ("vfourcc", str),
"VIDEO_BITRATE": ("vbitrate", int),
"VIDEO_WIDTH": ("width", int),
-------------------------------------------------------------------------
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