Skip to content
Snippets Groups Projects
Commit 382b550d authored by Julian Bouzas's avatar Julian Bouzas
Browse files

spa-device: don't destroy the task until the proxy is bound when exporting

parent 05aeeed9
No related branches found
No related tags found
No related merge requests found
......@@ -478,6 +478,7 @@ proxy_event_bound (void *data, uint32_t global_id)
spa_hook_remove (&self->proxy_listener);
g_task_return_boolean (task, TRUE);
g_object_unref (task);
}
static const struct pw_proxy_events proxy_events = {
......@@ -505,7 +506,7 @@ wp_spa_device_export (WpSpaDevice * self, GCancellable * cancellable,
wp_properties_peek_dict (self->properties),
self->device, 0);
pw_proxy_add_listener (self->proxy, &self->proxy_listener,
&proxy_events, task);
&proxy_events, g_steal_pointer (&task));
}
gboolean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment