mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
small cleanups
This commit is contained in:
parent
65e00631da
commit
c61d579d99
9 changed files with 34 additions and 19 deletions
|
|
@ -333,6 +333,8 @@ static int link_session_dsp(struct session *session)
|
|||
struct pw_port *op, *ip;
|
||||
char *error = NULL;
|
||||
|
||||
pw_log_debug("module %p: link session dsp '%d'", impl, session->id);
|
||||
|
||||
if (session->direction == PW_DIRECTION_OUTPUT) {
|
||||
op = session->dsp_port;
|
||||
ip = session->node_port;
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ process_messages(struct client_data *data)
|
|||
goto invalid_message;
|
||||
|
||||
if (debug_messages) {
|
||||
printf("<<<<<<<<< in: %d %d %d\n", id, opcode, size);
|
||||
fprintf(stderr, "<<<<<<<<< in: %d %d %d\n", id, opcode, size);
|
||||
spa_debug_pod((struct spa_pod *)message, 0);
|
||||
}
|
||||
if (demarshal[opcode].func(resource, message, size) < 0)
|
||||
|
|
@ -560,7 +560,7 @@ on_remote_data(void *data, int fd, enum spa_io mask)
|
|||
}
|
||||
}
|
||||
if (debug_messages) {
|
||||
printf("<<<<<<<<< in: %d %d %d\n", id, opcode, size);
|
||||
fprintf(stderr, "<<<<<<<<< in: %d %d %d\n", id, opcode, size);
|
||||
spa_debug_pod((struct spa_pod *)message, 0);
|
||||
}
|
||||
if (demarshal[opcode].func(proxy, message, size) < 0) {
|
||||
|
|
|
|||
|
|
@ -431,10 +431,11 @@ pw_protocol_native_connection_end(struct pw_protocol_native_connection *conn,
|
|||
buf->buffer_size += 8 + size;
|
||||
|
||||
if (debug_messages) {
|
||||
printf(">>>>>>>>> out: %d %d %d\n", impl->dest_id, impl->opcode, size);
|
||||
fprintf(stderr, ">>>>>>>>> out: %d %d %d\n", impl->dest_id, impl->opcode, size);
|
||||
spa_debug_pod((struct spa_pod *)p, 0);
|
||||
}
|
||||
spa_hook_list_call(&conn->listener_list, struct pw_protocol_native_connection_events, need_flush);
|
||||
spa_hook_list_call(&conn->listener_list,
|
||||
struct pw_protocol_native_connection_events, need_flush);
|
||||
}
|
||||
|
||||
/** Flush the connection object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue