[SCM] calf/master: Handle A2J port names correctly (with colons inside names).
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:14 UTC 2013
The following commit has been merged in the master branch:
commit c2f557e6305b2f595de2152942d1957633a04212
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Tue May 11 23:18:52 2010 +0100
Handle A2J port names correctly (with colons inside names).
diff --git a/bigbull/jackvis.py b/bigbull/jackvis.py
index 8acfdfd..5cd8831 100755
--- a/bigbull/jackvis.py
+++ b/bigbull/jackvis.py
@@ -15,7 +15,7 @@ class JACKPortInfo(object):
def __init__(self, full_name, id, name, flags, format):
self.full_name = full_name
- self.client_name = full_name.split(":")[0]
+ self.client_name = full_name.split(":", 1)[0]
self.id = int(id)
self.name = str(name)
self.flags = int(flags)
@@ -99,8 +99,8 @@ class JACKGraphParser(object):
def connect(self, first, second):
self.patchbay.ConnectPortsByName(first.client_name, first.name, second.client_name, second.name)
def disconnect(self, name_first, name_second):
- first = name_first.split(":")
- second = name_second.split(":")
+ first = name_first.split(":", 1)
+ second = name_second.split(":", 1)
self.patchbay.DisconnectPortsByName(first[0], first[1], second[0], second[1])
class ClientBoxInfo():
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list