mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
node: add better node autolink
Add node media, category and role properties and use those to select the target node. Tag the DSP node with the right media.class
This commit is contained in:
parent
bd27b32c39
commit
10fff4b2f8
6 changed files with 166 additions and 55 deletions
|
|
@ -341,7 +341,11 @@ int main(int argc, char *argv[])
|
|||
data.stream = pw_stream_new_simple(
|
||||
pw_main_loop_get_loop(data.loop),
|
||||
"video-play",
|
||||
pw_properties_new("pipewire.client.reuse", "1", NULL),
|
||||
pw_properties_new(
|
||||
PW_NODE_PROP_MEDIA, "Video",
|
||||
PW_NODE_PROP_CATEGORY, "Capture",
|
||||
PW_NODE_PROP_ROLE, "Camera",
|
||||
NULL),
|
||||
&stream_events,
|
||||
&data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue