GNOME Bugzilla – Bug 705439
dlna-renderer: Avoid async loading of PushHost and Player proxies
Last modified: 2013-08-06 16:33:06 UTC
Since at the moment we don't really mind about properties and signals on the PushHost and Player interfaces, we can rely on the fact that g_dbus_proxy_new_sync() is guaranteed to never block if the G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES and G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS are specified and severely simplify a lot of code since we're left with just one async task. This uses the RETURN_ON_ERROR() macro from bug #705433.
Created attachment 250793 [details] [review] dlna-renderer: Avoid async loading of PushHost and Player proxies Since at the moment we don't really mind about properties and signals on the PushHost and Player interfaces, we can rely on the fact that g_dbus_proxy_new_sync() is guaranteed to never block if the G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES and G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS are specified and severely simplify a lot of code since we're left with just one async task.
Review of attachment 250793 [details] [review]: Looks good! Thanks for the patch.