mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
core: add some more debug
This commit is contained in:
parent
5aea6252b4
commit
2fe9c37f11
1 changed files with 9 additions and 1 deletions
|
|
@ -258,6 +258,7 @@ struct pw_proxy *pw_core_export(struct pw_core *core,
|
||||||
res = -errno;
|
res = -errno;
|
||||||
goto error_proxy_failed;
|
goto error_proxy_failed;
|
||||||
}
|
}
|
||||||
|
pw_log_debug(NAME" %p: export:%s proxy:%p", core, type, proxy);
|
||||||
return proxy;
|
return proxy;
|
||||||
|
|
||||||
error_export_type:
|
error_export_type:
|
||||||
|
|
@ -376,6 +377,8 @@ pw_context_connect(struct pw_context *context, struct pw_properties *properties,
|
||||||
if (core == NULL)
|
if (core == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
pw_log_debug(NAME" %p: connect", core);
|
||||||
|
|
||||||
if ((res = pw_protocol_client_connect(core->conn,
|
if ((res = pw_protocol_client_connect(core->conn,
|
||||||
&core->properties->dict,
|
&core->properties->dict,
|
||||||
NULL, NULL)) < 0)
|
NULL, NULL)) < 0)
|
||||||
|
|
@ -401,6 +404,8 @@ pw_context_connect_fd(struct pw_context *context, int fd, struct pw_properties *
|
||||||
if (core == NULL)
|
if (core == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
pw_log_debug(NAME" %p: connect fd:%d", core, fd);
|
||||||
|
|
||||||
if ((res = pw_protocol_client_connect_fd(core->conn, fd, true)) < 0)
|
if ((res = pw_protocol_client_connect_fd(core->conn, fd, true)) < 0)
|
||||||
goto error_free;
|
goto error_free;
|
||||||
|
|
||||||
|
|
@ -430,12 +435,15 @@ pw_context_connect_self(struct pw_context *context, struct pw_properties *proper
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
int pw_core_steal_fd(struct pw_core *core)
|
int pw_core_steal_fd(struct pw_core *core)
|
||||||
{
|
{
|
||||||
return pw_protocol_client_steal_fd(core->conn);
|
int fd = pw_protocol_client_steal_fd(core->conn);
|
||||||
|
pw_log_debug(NAME" %p: fd:%d", core, fd);
|
||||||
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
int pw_core_set_paused(struct pw_core *core, bool paused)
|
int pw_core_set_paused(struct pw_core *core, bool paused)
|
||||||
{
|
{
|
||||||
|
pw_log_debug(NAME" %p: state:%s", core, paused ? "pause" : "resume");
|
||||||
return pw_protocol_client_set_paused(core->conn, paused);
|
return pw_protocol_client_set_paused(core->conn, paused);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue