mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
module-protocol-simple: handle 'node.name' property
This commit is contained in:
parent
29614a2c46
commit
65e8bec8dd
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,7 @@
|
|||
* - \ref PW_KEY_NODE_LATENCY
|
||||
* - \ref PW_KEY_NODE_RATE
|
||||
* - \ref PW_KEY_STREAM_CAPTURE_SINK
|
||||
* - \ref PW_KEY_NODE_NAME
|
||||
*
|
||||
* By default the server will work with stereo 16 bits samples at 44.1KHz.
|
||||
*
|
||||
|
|
@ -438,6 +439,7 @@ static int create_streams(struct impl *impl, struct client *client)
|
|||
PW_KEY_STREAM_CAPTURE_SINK, pw_properties_get(impl->props,
|
||||
PW_KEY_STREAM_CAPTURE_SINK),
|
||||
PW_KEY_NODE_NETWORK, "true",
|
||||
PW_KEY_NODE_NAME, pw_properties_get(impl->props, PW_KEY_NODE_NAME),
|
||||
NULL);
|
||||
if (props == NULL)
|
||||
return -errno;
|
||||
|
|
@ -459,6 +461,7 @@ static int create_streams(struct impl *impl, struct client *client)
|
|||
PW_KEY_NODE_RATE, pw_properties_get(impl->props, PW_KEY_NODE_RATE),
|
||||
PW_KEY_TARGET_OBJECT, pw_properties_get(impl->props, "playback.node"),
|
||||
PW_KEY_NODE_NETWORK, "true",
|
||||
PW_KEY_NODE_NAME, pw_properties_get(impl->props, PW_KEY_NODE_NAME),
|
||||
NULL);
|
||||
if (props == NULL)
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue