Soundplugin: fix path of soundfile

This commit is contained in:
Patrick Ulbrich
2015-01-31 14:16:12 +01:00
parent 1ac6ac0961
commit 7386dc6f03

View File

@@ -119,10 +119,8 @@ def gstplay(filename):
_gst_initialized = True
try:
cwd = os.getcwd()
location = os.path.join(cwd, filename)
ply = Gst.ElementFactory.make("playbin", "player")
ply.set_property("uri", "file://" + location)
ply.set_property("uri", "file://" + os.path.abspath(filename))
pt = _GstPlayThread(ply)
pt.start()
except: