mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-06 20:56:50 +02:00
Soundplugin: fix path of soundfile
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user