Make PinosPort struct

Keep track of the ports, their links and the allocated buffers in a
small struct managed by the node.
This commit is contained in:
Wim Taymans 2016-09-28 10:42:36 +02:00
parent c6861845a7
commit fe37e2bc1b
4 changed files with 364 additions and 417 deletions

View file

@ -204,11 +204,11 @@ on_link_state_notify (GObject *obj,
{
g_warning ("daemon %p: link %p: state error: %s", daemon, link, error->message);
if (link->input_node) {
pinos_node_report_error (link->input_node, g_error_copy (error));
if (link->input->node) {
pinos_node_report_error (link->input->node, g_error_copy (error));
}
if (link->output_node) {
pinos_node_report_error (link->output_node, g_error_copy (error));
if (link->output->node) {
pinos_node_report_error (link->output->node, g_error_copy (error));
}
break;
}