summaryrefslogtreecommitdiff
path: root/spa/tools
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2017-09-07 19:55:22 +0200
committerWim Taymans <wtaymans@redhat.com>2017-09-07 19:55:22 +0200
commitdc85a79786068fe096f90cec78f2c9852b4fea79 (patch)
tree246b17f0e022f459f0750100177eae4c5a4eb233 /spa/tools
parent21cd5a2918b920ae77f12e84558925bb210daac7 (diff)
Add more generic export-spa example
Replace the v4l2 example with a more generic version that can add any spa node to a remote graph Make the dictionary items const Add some info to nodes and factories. Add the node info to the node properties. We can then set the media.class directly on the node, instead of letting the monitor set it. Debug node info in spa-inspect. Do async operation on the audiotestsrc and videotestsrc differently.
Diffstat (limited to 'spa/tools')
-rw-r--r--spa/tools/spa-inspect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/spa/tools/spa-inspect.c b/spa/tools/spa-inspect.c
index 1b4ee91c..7a355c08 100644
--- a/spa/tools/spa-inspect.c
+++ b/spa/tools/spa-inspect.c
@@ -89,6 +89,12 @@ static void inspect_node(struct data *data, struct spa_node *node)
uint32_t *in_ports, *out_ports;
struct spa_props *props;
+ printf("node info:\n");
+ if (node->info)
+ spa_debug_dict(node->info);
+ else
+ printf(" none\n");
+
if ((res = spa_node_get_props(node, &props)) < 0)
printf("can't get properties: %d\n", res);
else