1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

Fix cmake compilation for new dispd daemon

This commit is contained in:
albfan 2018-01-31 22:26:42 +01:00 committed by Alberto Fanjul
parent 8b455e1ce4
commit 9df83ab7b2
3 changed files with 13 additions and 38 deletions

View file

@ -320,8 +320,13 @@ internal class GstEncoder : DispdEncoder, GLib.Object
conn = yield Bus.get(BusType.SESSION);
conn.register_object(DispdEncoder.OBJECT_PATH, this as DispdEncoder);
#if VALA_0_54
string bus_info = "%s\n%s".printf(conn.unique_name,
BusType.get_address_sync(BusType.SESSION));
BusType.SESSION.get_address_sync ());
#else
string bus_info = "%s\n%s".printf(conn.unique_name,
BusType.SESSION.get_address_sync());
#endif
/* we are ready, tell parent how to communicate with us */
ssize_t r = Posix.write(3, (void *) bus_info.data, bus_info.length);
if(0 > r) {