This commit is contained in:
Wim Taymans 2017-06-29 12:53:10 +02:00
parent a1fdfdc818
commit 7297c18839
4 changed files with 3 additions and 9 deletions

View file

@ -892,7 +892,6 @@ struct pw_link *pw_link_new(struct pw_core *core,
pw_signal_init(&this->port_unlinked);
pw_signal_init(&this->state_changed);
pw_signal_init(&this->destroy_signal);
pw_signal_init(&this->free_signal);
impl->format_filter = format_filter;
@ -1007,9 +1006,6 @@ void pw_link_destroy(struct pw_link *link)
link->output = NULL;
}
pw_log_debug("link %p: free", link);
pw_signal_emit(&link->free_signal, link);
pw_work_queue_destroy(impl->work);
if (link->info.format)

View file

@ -65,8 +65,6 @@ struct pw_link {
/** Emited when the link is destroyed */
PW_SIGNAL(destroy_signal, (struct pw_listener *, struct pw_link *));
/** Emited when the object is freed */
PW_SIGNAL(free_signal, (struct pw_listener *, struct pw_link *));
struct spa_list resource_list; /**< list of bound resources */

View file

@ -725,8 +725,8 @@ struct pw_port *pw_node_get_free_port(struct pw_node *node, enum pw_direction di
if (!spa_list_is_empty(ports)) {
port = spa_list_first(ports, struct pw_port, link);
/* for output we can reuse an existing port, for input only
* when there is a mixer */
if (direction == PW_DIRECTION_INPUT && port->mixer == NULL)
* when there is a multiplex */
if (direction == PW_DIRECTION_INPUT && port->multiplex == NULL)
port = NULL;
}
}

View file

@ -72,7 +72,7 @@ struct pw_port {
struct spa_list links; /**< list of \ref pw_link */
void *mixer; /**< optional port buffer mixer */
void *multiplex; /**< optional port buffer mix/split */
struct {
struct spa_list links; /**< list of \ref pw_link only accessed from the