summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2011-03-25 15:00:09 +0100
committerGravatar Martin Szulecki2011-03-25 15:00:09 +0100
commit2016e1d2bbc671362452eacc19319a7d41857930 (patch)
treeeb5027e988753cf8cf9d9e339879e6d50cbe45a1
parent9d99dda4ebc193de99baead7063acd2f293c2f9c (diff)
downloadtotem-plugin-airplay-2016e1d2bbc671362452eacc19319a7d41857930.tar.gz
totem-plugin-airplay-2016e1d2bbc671362452eacc19319a7d41857930.tar.bz2
Fix DBUS method call error
-rw-r--r--ZeroconfService.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ZeroconfService.py b/ZeroconfService.py
index 0b7d54d..0c8a3cf 100644
--- a/ZeroconfService.py
+++ b/ZeroconfService.py
@@ -39,7 +39,7 @@ class ZeroconfService(object):
server = dbus.Interface(bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER), avahi.DBUS_INTERFACE_SERVER)
g = dbus.Interface(bus.get_object(avahi.DBUS_NAME, server.EntryGroupNew()), avahi.DBUS_INTERFACE_ENTRY_GROUP)
- g.AddService(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, dbus.UInt32(0), self.name, self.stype, self.domain, self.host, dbus.UInt16(self.port), self.text)
+ g.AddService(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, dbus.UInt32(0), self.name, self.stype, self.domain, self.host, dbus.UInt16(self.port), avahi.string_array_to_txt_array(self.text))
g.Commit()
self.group = g