mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 12:51:54 +00:00
fix vala code changes
This commit is contained in:
parent
aadfeec79c
commit
ca9b0cd407
2 changed files with 6 additions and 1 deletions
|
@ -804,7 +804,7 @@ int main(string[]? argv)
|
|||
|
||||
|
||||
Application app = new DispCtl();
|
||||
app.set_default();
|
||||
Application.set_default(app);
|
||||
|
||||
Sigint.add_watch((app as DispCtl).stop_wireless_display);
|
||||
|
||||
|
|
|
@ -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.SESSION.get_address_sync ());
|
||||
#else
|
||||
string bus_info = "%s\n%s".printf(conn.unique_name,
|
||||
BusType.get_address_sync(BusType.SESSION));
|
||||
#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) {
|
||||
|
|
Loading…
Reference in a new issue