mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-07 08:21:11 -04:00
module-protocol-simple: handle 'node.name' property
This commit is contained in:
parent
976764514f
commit
0f0c9e8995
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,7 @@
|
||||||
* - \ref PW_KEY_NODE_LATENCY
|
* - \ref PW_KEY_NODE_LATENCY
|
||||||
* - \ref PW_KEY_NODE_RATE
|
* - \ref PW_KEY_NODE_RATE
|
||||||
* - \ref PW_KEY_STREAM_CAPTURE_SINK
|
* - \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.
|
* 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_properties_get(impl->props,
|
||||||
PW_KEY_STREAM_CAPTURE_SINK),
|
PW_KEY_STREAM_CAPTURE_SINK),
|
||||||
PW_KEY_NODE_NETWORK, "true",
|
PW_KEY_NODE_NETWORK, "true",
|
||||||
|
PW_KEY_NODE_NAME, pw_properties_get(impl->props, PW_KEY_NODE_NAME),
|
||||||
NULL);
|
NULL);
|
||||||
if (props == NULL)
|
if (props == NULL)
|
||||||
return -errno;
|
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_NODE_RATE, pw_properties_get(impl->props, PW_KEY_NODE_RATE),
|
||||||
PW_KEY_TARGET_OBJECT, pw_properties_get(impl->props, "playback.node"),
|
PW_KEY_TARGET_OBJECT, pw_properties_get(impl->props, "playback.node"),
|
||||||
PW_KEY_NODE_NETWORK, "true",
|
PW_KEY_NODE_NETWORK, "true",
|
||||||
|
PW_KEY_NODE_NAME, pw_properties_get(impl->props, PW_KEY_NODE_NAME),
|
||||||
NULL);
|
NULL);
|
||||||
if (props == NULL)
|
if (props == NULL)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue