examples: use PW_KEY_TARGET_OBJECT

In examples, tell people how to use target.object.
This commit is contained in:
Pauli Virtanen 2022-01-16 19:48:43 +02:00
parent de65fd442f
commit ca87d40448
16 changed files with 94 additions and 65 deletions

View file

@ -472,7 +472,7 @@ static void make_node(struct data *data)
props = pw_properties_new(PW_KEY_NODE_AUTOCONNECT, "true", NULL);
if (data->path)
pw_properties_set(props, PW_KEY_NODE_TARGET, data->path);
pw_properties_set(props, PW_KEY_TARGET_OBJECT, data->path);
pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Stream/Input/Video");
pw_properties_set(props, PW_KEY_MEDIA_TYPE, "Video");
pw_properties_set(props, PW_KEY_MEDIA_CATEGORY, "Capture");