mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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.
This commit is contained in:
parent
21cd5a2918
commit
dc85a79786
19 changed files with 190 additions and 92 deletions
|
|
@ -823,9 +823,18 @@ static int impl_node_process_output(struct spa_node *node)
|
|||
return res;
|
||||
}
|
||||
|
||||
static const struct spa_dict_item info_items[] = {
|
||||
{ "media.class", "Video/Source" },
|
||||
};
|
||||
|
||||
static const struct spa_dict info = {
|
||||
SPA_N_ELEMENTS(info_items),
|
||||
info_items
|
||||
};
|
||||
|
||||
static const struct spa_node impl_node = {
|
||||
SPA_VERSION_NODE,
|
||||
NULL,
|
||||
&info,
|
||||
impl_node_get_props,
|
||||
impl_node_set_props,
|
||||
impl_node_send_command,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue