Author: tack
Date: Mon Dec 11 17:30:17 2006
New Revision: 2224

Modified:
   trunk/popcorn/src/generic.py

Log:
If mrl passed to open() has no scheme, use parse_mrl to determine scheme
rather than just blindly prepending file:// because it is more intelligent.


Modified: trunk/popcorn/src/generic.py
==============================================================================
--- trunk/popcorn/src/generic.py        (original)
+++ trunk/popcorn/src/generic.py        Mon Dec 11 17:30:17 2006
@@ -42,6 +42,7 @@
 # kaa.popcorn imports
 import backends.manager
 from config import config as default_config
+from kaa.popcorn.utils import parse_mrl
 from ptypes import *
 
 # get logging object
@@ -260,7 +261,8 @@
             return False
 
         if mrl.find('://') == -1:
-            mrl = 'file://' + os.path.abspath(mrl)
+            scheme, path = parse_mrl(mrl)
+            mrl = "%s://%s" % (scheme, path)
 
         self._media = mrl, kaa.metadata.parse(mrl)
         self._open_caps = caps

-------------------------------------------------------------------------
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

Reply via email to