Permalink
Browse files

Convert to absolute paths during URI conversion (fixes danielgtaylor#47)

  • Loading branch information...
AkeemMcLennon committed Dec 30, 2010
1 parent 42a3f52 commit 4f7c05acf8799d1c11f08d9cfc943f458391206b
Showing with 3 additions and 2 deletions.
  1. +1 −1 arista/discoverer.py
  2. +2 −1 arista/transcoder.py
View
@@ -156,7 +156,7 @@ def __init__(self, filename, max_interleave=1.0):
elif filename.startswith("file://"):
pass
else:
filename = "file://" + filename
filename = "file://" + os.path.abspath(filename)
if not self.dbin:
# No custom source was setup, so let's use the uridecodebin!
View
@@ -284,7 +284,8 @@ def _get_source(self):
elif self.infile.startswith("file://"):
filename = self.infile
else:
filename = "file://" + self.infile
filename = "files://" + os.path.abspath(self.infile)
print "filename " + filename
return "uridecodebin uri=\"%s\" name=dmux" % filename

0 comments on commit 4f7c05a

Please sign in to comment.