node: add support for multiple input and output ports

Make it possible to have a mixer/spliter and converter for the gstreamer
sources and sinks.
Add logic to make a new input/output port when the existing ports are
not of the required format.
This commit is contained in:
Wim Taymans 2016-07-05 12:24:51 +02:00
parent e7e141a31d
commit ca4f3d84cd
12 changed files with 568 additions and 186 deletions

View file

@ -99,13 +99,17 @@ device_added (PinosGstManager *manager,
name,
properties,
element,
caps);
caps,
NULL,
NULL);
} else if (strstr (klass, "Sink")) {
node = pinos_gst_sink_new (priv->daemon,
name,
properties,
element,
caps);
caps,
NULL,
NULL);
}
if (node)
g_object_set_data (G_OBJECT (device), "PinosServerNode", node);