mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Small cleanups
This commit is contained in:
parent
574c6d4b90
commit
ce6b75cf63
7 changed files with 8 additions and 18 deletions
|
|
@ -809,6 +809,7 @@ static int spa_proxy_node_process_output(struct spa_node *node)
|
|||
pw_client_node_transport_add_message(impl->transport,
|
||||
&PW_CLIENT_NODE_MESSAGE_INIT(PW_CLIENT_NODE_MESSAGE_PROCESS_OUTPUT));
|
||||
do_flush(this);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
@ -848,7 +849,6 @@ client_node_done(void *data, int seq, int res)
|
|||
this->callbacks->done(this->callbacks_data, seq, res);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
client_node_update(void *data,
|
||||
uint32_t change_mask,
|
||||
|
|
|
|||
|
|
@ -1080,7 +1080,6 @@ struct pw_link *pw_link_new(struct pw_core *core,
|
|||
this->properties = properties;
|
||||
this->state = PW_LINK_STATE_INIT;
|
||||
|
||||
|
||||
this->input = input;
|
||||
this->output = output;
|
||||
|
||||
|
|
|
|||
|
|
@ -476,6 +476,7 @@ static void node_event(void *data, struct spa_event *event)
|
|||
static void node_need_input(void *data)
|
||||
{
|
||||
struct pw_node *node = data;
|
||||
pw_log_trace("node %p: need input", node);
|
||||
spa_hook_list_call(&node->listener_list, struct pw_node_events, need_input);
|
||||
spa_graph_need_input(node->rt.graph, &node->rt.node);
|
||||
}
|
||||
|
|
@ -483,6 +484,7 @@ static void node_need_input(void *data)
|
|||
static void node_have_output(void *data)
|
||||
{
|
||||
struct pw_node *node = data;
|
||||
pw_log_trace("node %p: have output", node);
|
||||
spa_graph_have_output(node->rt.graph, &node->rt.node);
|
||||
spa_hook_list_call(&node->listener_list, struct pw_node_events, have_output);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ struct stream {
|
|||
bool in_order;
|
||||
|
||||
bool client_reuse;
|
||||
uint32_t *last_buffer_id;
|
||||
|
||||
struct spa_list free;
|
||||
bool in_need_buffer;
|
||||
|
|
@ -906,12 +905,9 @@ static void client_node_transport(void *data, uint32_t node_id,
|
|||
|
||||
if (impl->trans) {
|
||||
pw_client_node_transport_destroy(impl->trans);
|
||||
free (impl->last_buffer_id);
|
||||
}
|
||||
impl->trans = transport;
|
||||
impl->last_buffer_id = malloc(impl->trans->area->max_input_ports * sizeof(uint32_t));
|
||||
for (i = 0; i < impl->trans->area->max_input_ports; i++) {
|
||||
impl->last_buffer_id[i] = SPA_ID_INVALID;
|
||||
}
|
||||
|
||||
pw_log_info("stream %p: create client transport %p with fds %d %d for node %u",
|
||||
|
|
@ -1042,8 +1038,6 @@ void pw_stream_disconnect(struct pw_stream *stream)
|
|||
if (impl->trans) {
|
||||
pw_client_node_transport_destroy(impl->trans);
|
||||
impl->trans = NULL;
|
||||
free(impl->last_buffer_id);
|
||||
impl->last_buffer_id = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ static bool do_info(struct data *data, const char *cmd, char *args, char **error
|
|||
|
||||
n = pw_split_ip(args, WHITESPACE, 1, a);
|
||||
if (n < 1) {
|
||||
asprintf(error, "%s <object-id>", cmd);
|
||||
asprintf(error, "%s <object-id>|all", cmd);
|
||||
return false;
|
||||
}
|
||||
if (!strcmp(a[0], "all")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue