client-node: remove transport area

We don't need the area anymore
This commit is contained in:
Wim Taymans 2018-04-12 10:12:40 +02:00
parent 10fff4b2f8
commit 03b914405d
8 changed files with 18 additions and 475 deletions

View file

@ -38,7 +38,6 @@
#include "pipewire/core.h"
#include "modules/spa/spa-node.h"
#include "client-node.h"
#include "transport.h"
/** \cond */
@ -141,8 +140,6 @@ struct impl {
struct node node;
struct pw_client_node_transport *transport;
struct pw_map io_map;
struct pw_memblock *io_areas;
@ -855,21 +852,15 @@ static int
impl_node_port_reuse_buffer(struct spa_node *node, uint32_t port_id, uint32_t buffer_id)
{
struct node *this;
struct impl *impl;
this = SPA_CONTAINER_OF(node, struct node, node);
impl = this->impl;
if (!CHECK_OUT_PORT(this, SPA_DIRECTION_OUTPUT, port_id))
return -EINVAL;
spa_log_trace(this->log, "reuse buffer %d", buffer_id);
pw_client_node_transport_add_message(impl->transport, (struct pw_client_node_message *)
&PW_CLIENT_NODE_MESSAGE_PORT_REUSE_BUFFER_INIT(port_id, buffer_id));
//send_process(this);
return 0;
return -ENOTSUP;
}
static int
@ -915,9 +906,6 @@ client_node_done(void *data, int seq, int res)
struct impl *impl = data;
struct node *this = &impl->node;
if (seq == 0 && res == 0 && impl->transport == NULL)
impl->transport = pw_client_node_transport_new();
this->callbacks->done(this->callbacks_data, seq, res);
}
@ -1176,8 +1164,7 @@ static void node_initialized(void *data)
pw_client_node_resource_transport(this->resource,
pw_global_get_id(pw_node_get_global(node)),
impl->other_fds[0],
impl->other_fds[1],
impl->transport);
impl->other_fds[1]);
}
static void node_free(void *data)
@ -1187,9 +1174,6 @@ static void node_free(void *data)
pw_log_debug("client-node %p: free", &impl->this);
node_clear(&impl->node);
if (impl->transport)
pw_client_node_transport_destroy(impl->transport);
spa_hook_remove(&impl->node_listener);
pw_array_clear(&impl->mems);